|
@@ -7,9 +7,10 @@ from games.utils import import_gamelist_file_to_db_for_system, skyscrape_console
|
|
|
|
|
|
@shared_task
|
|
|
def update_roms(game_system_slugs: list, full_scan=False):
|
|
|
+ import_dict = {"imported": 0, "not_imported": 0}
|
|
|
for game_system_slug in game_system_slugs:
|
|
|
- scrape_out, load_out = skyscrape_console(game_system_slug)
|
|
|
+ skyscrape_console(game_system_slug)
|
|
|
import_dict = import_gamelist_file_to_db_for_system(
|
|
|
game_system_slug, full_scan=full_scan
|
|
|
)
|
|
|
- return json.dumps(import_dict)
|
|
|
+ print(import_dict)
|