lots
This commit is contained in:
@@ -313,6 +313,9 @@ class DataInitializationService(BaseService):
|
||||
else:
|
||||
# Get CSV data from API
|
||||
csv_data = await tcgcsv_service.get_products_and_prices(game_id, group.group_id)
|
||||
if not csv_data:
|
||||
logger.warning(f"No products data found for group {group.group_id}")
|
||||
continue
|
||||
|
||||
# Save the CSV file
|
||||
await self.file_service.save_file(
|
||||
@@ -428,6 +431,9 @@ class DataInitializationService(BaseService):
|
||||
logger.info(f"Downloading and processing archived prices for {date}")
|
||||
# Download and extract the archive
|
||||
archive_data = await tcgcsv_service.get_archived_prices_for_date(date)
|
||||
if not archive_data:
|
||||
logger.warning(f"No archive data found for {date}")
|
||||
continue
|
||||
|
||||
# Save the archive file
|
||||
file_record = await self.file_service.save_file(
|
||||
|
Reference in New Issue
Block a user