Add transit betting
This commit is contained in:
9 files changed
+445
-55
No files matched your search
+5
-1
@@ -111,8 +111,12 @@ impl Task {
|
||||
}
|
||||
TaskType::CheckBirthdays => {
|
||||
info!("Checking Birthdays");
|
||||
|
||||
let time =
|
||||
chrono_tz::America::Chicago.from_utc_datetime(&Utc::now().naive_utc());
|
||||
|
||||
let todays_birthdays =
|
||||
BirthdayEntry::todays_birthdays(&data.db, chrono::Utc::now().date_naive())?;
|
||||
BirthdayEntry::todays_birthdays(&data.db, time.date_naive())?;
|
||||
|
||||
for birth in todays_birthdays {
|
||||
if let Ok(user) =
|
||||
|
||||
Reference in new issue
Block a user