Wed Jun 21 15:43:39 CEST 2023
This commit is contained in:
@@ -200,12 +200,15 @@ def get_whitespace(key: str, idx=0) -> int:
|
||||
|
||||
return max_len
|
||||
|
||||
def show_schedule():
|
||||
# if there is internet access, load stuff from the web
|
||||
# if not, load the schedule.csv file
|
||||
if nw.is_connected() == True:
|
||||
schedule = get_schedule("/SOL/App/Kalendar/KZK001_KalendarTyden.aspx")
|
||||
schedule_to_file(schedule)
|
||||
def show_schedule(local=False):
|
||||
if local == False:
|
||||
# if there is internet access, load stuff from the web
|
||||
# if not, load the schedule.csv file
|
||||
if nw.is_connected() == True:
|
||||
schedule = get_schedule("/SOL/App/Kalendar/KZK001_KalendarTyden.aspx")
|
||||
schedule_to_file(schedule)
|
||||
else:
|
||||
schedule = schedule_from_file()
|
||||
else:
|
||||
schedule = schedule_from_file()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user