Updated theming
This commit is contained in:
@@ -4,7 +4,6 @@ Test script to download images for existing games that don't have local images y
|
||||
"""
|
||||
import asyncio
|
||||
import aiohttp
|
||||
from pathlib import Path
|
||||
from sqlalchemy import create_engine, select
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
@@ -50,7 +49,7 @@ async def test_image_downloads():
|
||||
# Update database with local path
|
||||
metadata.cover_image_path = cover_path
|
||||
else:
|
||||
print(f" ✗ Failed to download cover")
|
||||
print(" ✗ Failed to download cover")
|
||||
|
||||
# Download screenshot
|
||||
if metadata.screenshot:
|
||||
@@ -65,11 +64,11 @@ async def test_image_downloads():
|
||||
# Update database with local path
|
||||
metadata.screenshot_path = screenshot_path
|
||||
else:
|
||||
print(f" ✗ Failed to download screenshot")
|
||||
print(" ✗ Failed to download screenshot")
|
||||
|
||||
# Commit the updates
|
||||
session.commit()
|
||||
print(f"\n✓ Database updated with local image paths")
|
||||
print("\n✓ Database updated with local image paths")
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(test_image_downloads())
|
||||
Reference in New Issue
Block a user