Răsfoiți Sursa

fix unused var

Nick Sweeting 4 ani în urmă
părinte
comite
49b77b91bb
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      archivebox/core/admin.py
  2. 1 1
      archivebox/main.py

+ 1 - 1
archivebox/core/admin.py

@@ -173,7 +173,7 @@ class SnapshotAdmin(SearchResultsAdminMixin, admin.ModelAdmin):
         rendered_response = self.changelist_view(request)
         rendered_response = self.changelist_view(request)
 
 
         # Restore values
         # Restore values
-        self.change_list_template =  saved_change_list_template
+        self.change_list_template = saved_change_list_template
         self.list_per_page = saved_list_per_page
         self.list_per_page = saved_list_per_page
         self.list_max_show_all = saved_list_max_show_all
         self.list_max_show_all = saved_list_max_show_all
 
 

+ 1 - 1
archivebox/main.py

@@ -643,7 +643,7 @@ def add(urls: Union[str, List[str]],
         for link in imported_links:
         for link in imported_links:
             snapshot = link.as_snapshot()
             snapshot = link.as_snapshot()
             snapshot.tags.add(*tags)
             snapshot.tags.add(*tags)
-            tags_str = snapshot.tags_str(nocache=True)
+            snapshot.tags_str(nocache=True)
             snapshot.save()
             snapshot.save()
         # print(f'    √ Tagged {len(imported_links)} Snapshots with {len(tags)} tags {tags_str}')
         # print(f'    √ Tagged {len(imported_links)} Snapshots with {len(tags)} tags {tags_str}')