mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 01:00:11 +02:00
fix: status command was failing on empty archives
This commit is contained in:
committed by
Cristian Vargas
parent
be0dff8126
commit
6a2e6aad2f
@@ -460,6 +460,7 @@ def status(out_dir: str=OUTPUT_DIR) -> None:
|
|||||||
if last_login:
|
if last_login:
|
||||||
print(f' Last UI login: {last_login.username} @ {str(last_login.last_login)[:16]}')
|
print(f' Last UI login: {last_login.username} @ {str(last_login.last_login)[:16]}')
|
||||||
last_updated = Snapshot.objects.order_by('updated').last()
|
last_updated = Snapshot.objects.order_by('updated').last()
|
||||||
|
if last_updated:
|
||||||
print(f' Last changes: {str(last_updated.updated)[:16]}')
|
print(f' Last changes: {str(last_updated.updated)[:16]}')
|
||||||
|
|
||||||
if not users:
|
if not users:
|
||||||
|
Reference in New Issue
Block a user