исправляю ошибки
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-05-07 18:58:18 +10:00
parent d0f0ea60a8
commit 83020c3124
3 changed files with 5 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ class Source2Parser(BaseParser):
text, time_text = extract_text_from_url(hrefs)
if len(text) >= MIN_ARTICLE_TEXT_LENGTH:
response_text = gpt_response_message(text, "source2")
print(response_text)
# print(response_text)
if response_text:
update_bd_and_create_document(
response_text=response_text,

View File

@@ -74,7 +74,7 @@ class UniversalParser(BaseParser):
if parsed.netloc != base_domain:
continue
print(num)
# print(num)
if not check_url(abs_url) and wp.check_error_url(abs_url):
try:
@@ -89,6 +89,7 @@ class UniversalParser(BaseParser):
# Если дата публикации отсутствует - используем текущую
if article.publish_date:
time_text = article.publish_date.strftime("%Y/%m/%d %H:%M:%S")
print(time_text)
else:
time_text = datetime.now().strftime("%Y/%m/%d %H:%M:%S")
print(f"Дата публикации отсутствует, используем текущую: {time_text}")