Fix tags for notes

This commit is contained in:
Ilya Zverev 2016-06-14 17:38:28 +03:00
parent eaeb5d0580
commit 852f0673e4

View file

@ -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]