From 910f3d65c7ff5bb417f8557e33977d1a27196730 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 28 Nov 2020 01:06:11 -0500 Subject: [PATCH] default function args can never be mutable --- archivebox/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/core/models.py b/archivebox/core/models.py index 5dd9cfc3..d938c53f 100644 --- a/archivebox/core/models.py +++ b/archivebox/core/models.py @@ -151,7 +151,7 @@ class Snapshot(models.Model): return self.history['title'][-1].output.strip() return None - def save_tags(self, tags=[]): + def save_tags(self, tags=()): tags_id = [] for tag in tags: tags_id.append(Tag.objects.get_or_create(name=tag)[0].id)