mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
default function args can never be mutable
This commit is contained in:
parent
411fdcac87
commit
910f3d65c7
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Snapshot(models.Model):
|
||||||
return self.history['title'][-1].output.strip()
|
return self.history['title'][-1].output.strip()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def save_tags(self, tags=[]):
|
def save_tags(self, tags=()):
|
||||||
tags_id = []
|
tags_id = []
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
tags_id.append(Tag.objects.get_or_create(name=tag)[0].id)
|
tags_id.append(Tag.objects.get_or_create(name=tag)[0].id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue