Skip to content

Commit

Permalink
fix cron
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpomerenke committed Aug 7, 2024
1 parent a928b4c commit 1e98bcb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend-python/media_impact_monitor/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def fill_cache():
print("Filling cache...")
errors = []
events = {}
for data_source in ["acled"]: # , "press_releases"]:
for data_source in ["acled", "press_releases"]:
print(f"Retrieving {data_source} events...")
try:
events[data_source] = get_events(
Expand Down Expand Up @@ -92,6 +92,3 @@ def fill_cache():
raise ValueError(f"Errors occurred: {'; '.join(errors)}")
print("Successfully filled cache!")
return


fill_cache()

0 comments on commit 1e98bcb

Please sign in to comment.