refactor: big refactor

This commit is contained in:
2026-03-18 22:15:49 +03:00
parent 7e0e4a0b71
commit 1199ce1554
11 changed files with 264 additions and 555 deletions

View File

@@ -51,15 +51,8 @@ def parse_links(facultets):
"url": url,
"last_changed": last_changed
}
print(record)
print("Found in vstu.ru: ", record)
EXCEL_LINKS.append(record)
return sorted(EXCEL_LINKS, key=lambda x: x['url'])
def excels_to_diffabledates(excels):
dates = []
for excel in excels:
dates.append(f"{excel['last_changed']} {excel['facultet']} {excel['url']}")
return "\n".join(sorted(dates)).strip()