Fix tags for notes
This commit is contained in:
parent
eaeb5d0580
commit
852f0673e4
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Change(BaseModel):
|
|||
return {}
|
||||
tags = json.loads(self.changes)[1]
|
||||
for t in tags:
|
||||
if self.action == 'c':
|
||||
if self.action in ('c', 'n'):
|
||||
tags[t] = [None, tags[t]]
|
||||
elif self.action == 'd':
|
||||
tags[t] = [tags[t], None]
|
||||
|
|
Loading…
Add table
Reference in a new issue