auto-schedule-pro: fix redirection fail when more than one link provided by the schedule

This commit is contained in:
dymik739 2023-04-10 15:26:50 +03:00
parent 29a86f7320
commit 2f004fec7d
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ if next_pair_time == None:
#self.RESPONCE = "Актуальна пара: {}\nДата: {}\nВикладач: {}\nПосилання на пару: {}".format(p['name'], human_readable_date, p['teacher'], p['link'])
#print("test3.1.5")
print(f"Location: {p['link']}\n\n")
print(f"Location: {p['link'].split()[0]}\n\n")
else:
self.RESPONCE = "Пар немає взагалі. Ми вільні!"
@ -108,4 +108,4 @@ else:
#self.RESPONCE = "Актуальна пара: {}\nДата: {}\nВикладач: {}\nПосилання на пару: {}".format(p['name'], human_readable_date, p['teacher'], p['link'])
print(f"Location: {p['link']}\n\n")
print(f"Location: {p['link'].split()[0]}\n\n")