Просмотр исходного кода

Fix bug in importing TSV files

Colin Powell 2 лет назад
Родитель
Сommit
4a929956a7
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      vrobbler/apps/scrobbles/models.py

+ 2 - 0
vrobbler/apps/scrobbles/models.py

@@ -126,6 +126,7 @@ class BaseFileImportMixin(TimeStampedModel):
         self.process_count = len(scrobbles)
         self.save(update_fields=["process_log", "process_count"])
 
+    @property
     def upload_file_path(self):
         raise NotImplementedError
 
@@ -191,6 +192,7 @@ class AudioScrobblerTSVImport(BaseFileImportMixin):
         uuid = instance.uuid
         return f"audioscrobbler-uploads/{uuid}.{extension}"
 
+    @property
     def upload_file_path(self):
         if getattr(settings, "USE_S3_STORAGE"):
             path = self.tsv_file.url