[boardgames] Hash lrtl files and only import if changed
All checks were successful
build & deploy / test (push) Successful in 2m3s
build & deploy / build-and-deploy (push) Successful in 33s

This commit is contained in:
2026-05-22 12:25:42 -04:00
parent 26176ccd73
commit c5f1ee2d64
3 changed files with 48 additions and 1 deletions

View File

@ -401,6 +401,7 @@ class RetroarchImport(BaseFileImportMixin):
original_filename = models.CharField(max_length=255, **BNULL)
lrtl_file = models.FileField(upload_to="scrobbles/lrtl_file/", **BNULL)
files_hash = models.CharField(max_length=64, **BNULL)
def process(self, import_all=False, force=False):
"""Import scrobbles found on Retroarch"""