Skip to content

Commit d77613d

Browse files
fix(mediacloud.py): do not always collect stories
1 parent e07e7ae commit d77613d

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • backend-python/src/media_impact_monitor/data_loaders/news_online

backend-python/src/media_impact_monitor/data_loaders/news_online/mediacloud_.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,6 @@ def _story_list_all_pages(
9898
all_stories = random.sample(all_stories, sample_size)
9999
return all_stories
100100

101-
102-
stories = _story_list_all_pages(
103-
query="climate change",
104-
start_date=date(2024, 1, 1),
105-
end_date=date(2024, 1, 31),
106-
collection_ids=[],
107-
sample_frac=0.01,
108-
verbose=True,
109-
)
110-
111-
112101
def _slice_date_range(start: date, end: date) -> list[tuple[date, date]]:
113102
result = []
114103
current = start.replace(day=1)

0 commit comments

Comments
 (0)