fix inconsistent indentation

This commit is contained in:
Damien Elmes 2019-03-04 16:54:22 +10:00
parent 5185e817fc
commit 4037a034aa
10 changed files with 104 additions and 105 deletions

View file

@ -168,8 +168,7 @@ select id from cards where nid in (select id from notes where mid = ?)""",
def ensureNameUnique(self, m): def ensureNameUnique(self, m):
for mcur in self.all(): for mcur in self.all():
if (mcur['name'] == m['name'] and if (mcur['name'] == m['name'] and mcur['id'] != m['id']):
mcur['id'] != m['id']):
m['name'] += "-" + checksum(str(time.time()))[:5] m['name'] += "-" + checksum(str(time.time()))[:5]
break break