status bug fix

This commit is contained in:
bigeagle 2015-05-16 14:31:50 +08:00
parent 2626102a5f
commit 7469cc7bf1

View File

@ -61,7 +61,7 @@ class StatusManager(object):
'status': '-', 'status': '-',
}) })
if status in ("syncing", "fail"): if status in ("syncing", "fail", "pre-syncing"):
update_time = _m["last_update"] update_time = _m["last_update"]
elif status == "success": elif status == "success":
update_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") update_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")