diff options
Diffstat (limited to 'jimbrella')
-rw-r--r-- | jimbrella/admin_log.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/jimbrella/admin_log.py b/jimbrella/admin_log.py index 2d130c7..1b3ce1e 100644 --- a/jimbrella/admin_log.py +++ b/jimbrella/admin_log.py @@ -60,11 +60,11 @@ class AdminLog: info = {} if event in ("TAKEAWAY", "GIVEBACK", "OVERDUE"): info = { - "serial": int(row[2]), - "tenant_name": row[3], - "tenant_id": row[4], - "tenant_phone": row[5], - "tenant_email": row[6], + "key": int(row[2]), + "name": row[3], + "id": row[4], + "phone": row[5], + "email": row[6], } elif event == "ADMIN_MODIFY_DB": info = { @@ -133,18 +133,18 @@ class AdminLog: info = [] if event in ("TAKEAWAY", "GIVEBACK", "OVERDUE"): info = [ - entry[col] + entry[col] if col in entry else "" for col in [ - "serial", - "tenant_name", - "tenant_id", - "tenant_phone", - "tenant_email", + "key", + "name", + "id", + "phone", + "email", ] ] elif event == "ADMIN_MODIFY_DB": info = [ - entry[col] + entry[col] if col in entry else "" for col in [ "admin_name", "serial", |