Skip to content

Commit ba47dfb

Browse files
committed
Update official_news Script
1 parent f193f22 commit ba47dfb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/real_madrid/official_news.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ def getArticleData(url):
148148
print("✅ Message sended to telegram successfully")
149149

150150
# Save to database:
151-
# print("Save url to database - Saving...")
152-
# save_to_database(
153-
# collection=realMadridArticlesCollection,
154-
# data={"article_url": url, "source": SOURCE_NAME},
155-
# )
156-
# print("✅ Url saved to database successfully")
151+
print("Save url to database - Saving...")
152+
save_to_database(
153+
collection=realMadridArticlesCollection,
154+
data={"article_url": url, "source": SOURCE_NAME},
155+
)
156+
print("✅ Url saved to database successfully")
157157

158158
print("\n✅ Script End - Exitting...")
159159
except Exception as e:

0 commit comments

Comments
 (0)