mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Remove Python 3.9 method in crawler
This commit is contained in:
parent
0e1077bb50
commit
f0562049b6
@ -281,7 +281,10 @@ class IliasCrawler:
|
|||||||
result += [IliasCrawlerEntry(element_path, abs_url, element_type, None)]
|
result += [IliasCrawlerEntry(element_path, abs_url, element_type, None)]
|
||||||
continue
|
continue
|
||||||
|
|
||||||
rest_of_name = meeting_name.removeprefix(date_portion_str)
|
rest_of_name = meeting_name
|
||||||
|
if rest_of_name.startswith(date_portion_str):
|
||||||
|
rest_of_name = rest_of_name[len(date_portion_str):]
|
||||||
|
|
||||||
new_name = datetime.datetime.strftime(date_portion, "%Y-%m-%d, %H:%M") \
|
new_name = datetime.datetime.strftime(date_portion, "%Y-%m-%d, %H:%M") \
|
||||||
+ rest_of_name
|
+ rest_of_name
|
||||||
new_path = Path(folder_path, _sanitize_path_name(new_name))
|
new_path = Path(folder_path, _sanitize_path_name(new_name))
|
||||||
|
Loading…
Reference in New Issue
Block a user