mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Merge pull request #299 from glutanimate/fix-update-none-comparison
Fix timestamp comparison failing when update API returns null
This commit is contained in:
commit
fda69219fc
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ Are you sure you want to continue?"""
|
||||||
updated = []
|
updated = []
|
||||||
for dir, ts in mods:
|
for dir, ts in mods:
|
||||||
sid = str(dir)
|
sid = str(dir)
|
||||||
if self.addonMeta(sid).get("mod",0) < ts:
|
if self.addonMeta(sid).get("mod", 0) < (ts or 0):
|
||||||
updated.append(sid)
|
updated.append(sid)
|
||||||
return updated
|
return updated
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue