Skip to content

Commit ab09afd

Browse files
committed
await _get_club_type()
1 parent 609ebb2 commit ab09afd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backend/scraping/event_processor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ async def process(self, posts_data, cutoff_date):
191191
# Fallback: Use the first image (cover) if no index specified
192192
event_data["source_image_url"] = all_s3_urls[0]
193193

194-
success = await self._save_event(event_data, ig_handle, source_url, self._get_club_type(ig_handle))
194+
club_type = await self._get_club_type(ig_handle)
195+
success = await self._save_event(event_data, ig_handle, source_url, club_type)
195196
if success:
196197
saved_count += 1
197198

backend/scraping/logging_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def setup_logging():
2121
logging.StreamHandler(sys.stdout),
2222
logging.FileHandler(LOG_FILE, encoding="utf-8"),
2323
]
24-
logging.basicConfig(level=logging.DEBUG, format=fmt, handlers=handlers)
24+
logging.basicConfig(level=logging.INFO, format=fmt, handlers=handlers)
2525
root_logger._wat2do_configured = True
2626
root_logger.propagate = False
2727

0 commit comments

Comments
 (0)