This commit is contained in:
@@ -59,7 +59,8 @@ def update_bd_and_create_document(
|
||||
print("Данные успешно сохранены в БД")
|
||||
|
||||
# Создание DOCX документа
|
||||
path_day = parsed_at.split()[0].replace('-', '/')
|
||||
# path_day = parsed_at.split()[0].replace('-', '/')
|
||||
path_day = article_date.split()[0]
|
||||
documents_path = os.path.join(DOCUMENTS_DIR, path_day)
|
||||
if not os.path.exists(documents_path):
|
||||
os.makedirs(documents_path)
|
||||
|
||||
Reference in New Issue
Block a user