소스 검색

Fix bug in importing TSV files

Colin Powell 2 년 전
부모
커밋
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