فهرست منبع

Fix adding games to task output

Colin Powell 3 سال پیش
والد
کامیت
054c93e1d4
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      games/utils.py

+ 3 - 3
games/utils.py

@@ -66,8 +66,8 @@ def import_gamelist_file_to_db_for_system(
             continue
 
         if not created and not full_scan:
-            not_imported_games.append(game)
-            logger.info(f"Found game {game} and not doing full scan, so skipping")
+            not_imported_games.append(obj)
+            logger.info(f"Found game {obj} and not doing full scan, so skipping")
             continue
 
         region = Game.Region.X.name
@@ -141,7 +141,7 @@ def import_gamelist_file_to_db_for_system(
         obj.region = region
         obj.save()
 
-        imported_games.append(game)
+        imported_games.append(obj)
     return {"imported": imported_games, "not_imported": not_imported_games}