Implement mod-viewable janitor-generated badness stats.

This commit is contained in:
Ben Rog-Wilhelm 2023-04-22 08:25:17 -05:00
parent 8933f77bf5
commit 9d264dcf3a
14 changed files with 1772 additions and 1112 deletions

View file

@ -19,12 +19,12 @@ def cron_setup():
# I guess in theory we should load this from a file or something, but, ehhhh
hardcoded_cron_jobs = {
#'testjob': {
#'frequency_day': DayOfWeek.ALL,
#'time_of_day_utc': datetime.time(0, 0),
#'import_path': 'files.commands.debug_printout',
#'callable': 'printstuff',
#},
'volunteer_janitor_recalc': {
'frequency_day': DayOfWeek.ALL,
'time_of_day_utc': datetime.time(0, 0),
'import_path': 'files.commands.volunteer_janitor_recalc',
'callable': 'volunteer_janitor_recalc_cron',
},
}
print(f"{tasklist.count()} tasks")