refactor: big refactor
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user