Skip to content

Commit 115d6db

Browse files
committed
sync-db: avoid duplicating Files
1 parent 735bee8 commit 115d6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/sync_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def run():
210210
),
211211
)
212212

213-
File.objects.create(
213+
File.objects.update_or_create(
214214
entry=entry, name=romfile, file_hash=hash, playable=True
215215
)
216216

0 commit comments

Comments
 (0)