fix rosters checker

This commit is contained in:
Coding with Peter 2023-04-28 10:12:44 -07:00
parent 7623c52a4a
commit a63aa0798b
1 changed files with 2 additions and 2 deletions

View File

@ -1153,7 +1153,7 @@ def fetch_current_rosters():
[print(" %s" % f) for f in files] [print(" %s" % f) for f in files]
i = 0 i = 0
got_courses = 0 got_courses = 0
if len(files)>1: # and 'users.csv' in files: if len(files)>0: # and 'users.csv' in files:
try: try:
if 'users.csv' in files: if 'users.csv' in files:
sftp.get('users.csv','cache/rosters/users-'+dt_label+'.csv') sftp.get('users.csv','cache/rosters/users-'+dt_label+'.csv')
@ -1201,7 +1201,7 @@ def fetch_current_rosters():
def fetch_current_rosters_auto(): def fetch_current_rosters_auto():
schedule.every().hour.at(":57").do(fetch_current_rosters) schedule.every().hour.at(":58").do(fetch_current_rosters)
schedule.every().day.at("12:35").do(sync_non_interactive) schedule.every().day.at("12:35").do(sync_non_interactive)
schedule.every().day.at("21:00").do(sync_non_interactive) schedule.every().day.at("21:00").do(sync_non_interactive)