fix rosters checker
This commit is contained in:
parent
7623c52a4a
commit
a63aa0798b
|
|
@ -1153,7 +1153,7 @@ def fetch_current_rosters():
|
|||
[print(" %s" % f) for f in files]
|
||||
i = 0
|
||||
got_courses = 0
|
||||
if len(files)>1: # and 'users.csv' in files:
|
||||
if len(files)>0: # and 'users.csv' in files:
|
||||
try:
|
||||
if 'users.csv' in files:
|
||||
sftp.get('users.csv','cache/rosters/users-'+dt_label+'.csv')
|
||||
|
|
@ -1201,7 +1201,7 @@ def fetch_current_rosters():
|
|||
|
||||
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("21:00").do(sync_non_interactive)
|
||||
|
|
|
|||
Loading…
Reference in New Issue