This commit is contained in:
2025-08-01 10:33:50 -04:00
parent 82fd1cb2da
commit 9c13118a05
24 changed files with 1160 additions and 38 deletions

View File

@@ -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(