mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix inconsistent indentation
This commit is contained in:
parent
5185e817fc
commit
4037a034aa
10 changed files with 104 additions and 105 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue