set emulator correctly on emulation

This commit is contained in:
Georges-Antoine Assi
2024-01-25 17:07:30 -05:00
parent 38eda35f23
commit 13181ec666
2 changed files with 3 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ def add_saves(
continue
scanned_save.rom_id = rom.id
scanned_save.emulator = emulator
db_save_handler.add_save(scanned_save)
rom = db_rom_handler.get_roms(rom_id)

View File

@@ -26,7 +26,7 @@ def add_states(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail="No states were uploaded",
)
states_path = build_asset_file_path(
rom.platform.fs_slug, folder=cm.config.STATES_FOLDER_NAME, emulator=emulator
)
@@ -50,6 +50,7 @@ def add_states(
continue
scanned_state.rom_id = rom.id
scanned_state.emulator = emulator
db_state_handler.add_state(scanned_state)
rom = db_rom_handler.get_roms(rom_id)