feat: @skynet.ie is not a permitted address

#1
This commit is contained in:
silver 2023-07-30 01:54:18 +01:00
parent 72776a967a
commit 21f2a21609

View file

@ -15,6 +15,11 @@ async fn main() {
if let Ok(records) = read_csv(&config) { if let Ok(records) = read_csv(&config) {
for record in records { for record in records {
// skynet emails not permitted
if record.email.trim().ends_with("@skynet.ie") {
continue;
}
// check if the email is already in the db // check if the email is already in the db
if !check(&db, &record.email).await { if !check(&db, &record.email).await {
continue; continue;