Skip to content

Commit ab0b4c0

Browse files
committed
fix: wrong usage for collection name in fetch range summary!
1 parent 7f39918 commit ab0b4c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hivemind_summarizer/activities.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def fetch_telegram_summaries_by_date_range(
216216
Parameters
217217
----------
218218
input : TelegramSummariesRangeActivityInput
219-
Input object containing start_date, end_date, collection_name and extract_text_only
219+
Input object containing start_date, end_date, platform_name and community_id
220220
221221
Returns
222222
-------
@@ -226,15 +226,15 @@ async def fetch_telegram_summaries_by_date_range(
226226
Raises
227227
------
228228
ValueError
229-
If end_date is before start_date or collection_name is not provided
229+
If end_date is before start_date or platform_name is not provided
230230
"""
231231
start_date = input.start_date
232232
end_date = input.end_date
233233
extract_text_only = input.extract_text_only
234-
collection_name = input.collection_name
234+
platform_name = input.platform_name
235235
community_id = input.community_id
236-
if not collection_name:
237-
raise ValueError("Collection name is required but was not provided")
236+
if not platform_name:
237+
raise ValueError("Platform name is required but was not provided")
238238

239239
logging.info(
240240
f"Fetching summaries for date range: {start_date} to {end_date} from collection: {collection_name}"

0 commit comments

Comments
 (0)