Przeglądaj źródła

Fix lookup for games with same title

Colin Powell 3 lat temu
rodzic
commit
4b6c0f69cb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      games/utils.py

+ 1 - 1
games/utils.py

@@ -50,7 +50,7 @@ def import_gamelist_file_to_db_for_system(
     games = gamelist.findall("game")
     for game in games:
         name = game.find("name").text
-        obj, created = Game.objects.get_or_create(name=name)
+        obj, created = Game.objects.get_or_create(name=name, game_system=game_system)
 
         if not created and not full_scan:
             not_imported_games.append(game)