guard against non mtime
parent
d443add589
commit
4199ac7fd2
|
@ -162,7 +162,7 @@ def tdp():
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
users = sorted(
|
users = sorted(
|
||||||
(tdp_user(u, h) for u, h in get_users()),
|
(tdp_user(u, h) for u, h in get_users()),
|
||||||
key=lambda x:x['mtime'],
|
key=lambda x:x.get('mtime', 0),
|
||||||
reverse=True)
|
reverse=True)
|
||||||
|
|
||||||
# TDP format data
|
# TDP format data
|
||||||
|
|
Reference in New Issue