mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-23 06:33:18 +02:00
default function args can never be mutable
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user