From 49b77b91bb2bd2f900312444d4ba88f06a0609c3 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 27 Mar 2021 05:12:54 -0400 Subject: [PATCH] fix unused var --- archivebox/core/admin.py | 2 +- archivebox/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/core/admin.py b/archivebox/core/admin.py index d539d3f1..517ec79b 100644 --- a/archivebox/core/admin.py +++ b/archivebox/core/admin.py @@ -173,7 +173,7 @@ class SnapshotAdmin(SearchResultsAdminMixin, admin.ModelAdmin): rendered_response = self.changelist_view(request) # 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_max_show_all = saved_list_max_show_all diff --git a/archivebox/main.py b/archivebox/main.py index 884f5b46..5c697c55 100644 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -643,7 +643,7 @@ def add(urls: Union[str, List[str]], for link in imported_links: snapshot = link.as_snapshot() snapshot.tags.add(*tags) - tags_str = snapshot.tags_str(nocache=True) + snapshot.tags_str(nocache=True) snapshot.save() # print(f' √ Tagged {len(imported_links)} Snapshots with {len(tags)} tags {tags_str}')