From 387c40d18cbb62338c81aebef2978f3035b352ec Mon Sep 17 00:00:00 2001 From: krateng Date: Thu, 7 Apr 2022 21:21:10 +0200 Subject: [PATCH] Small improvements --- maloja/database/__init__.py | 1 + maloja/web/jinja/abstracts/admin.jinja | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/maloja/database/__init__.py b/maloja/database/__init__.py index e01956b..6b924b8 100644 --- a/maloja/database/__init__.py +++ b/maloja/database/__init__.py @@ -135,6 +135,7 @@ def incoming_scrobble(rawscrobble,fix=True,client=None,api=None,dbconn=None): @waitfordb def remove_scrobble(timestamp): + log(f"Deleting Scrobble {timestamp}") result = sqldb.delete_scrobble(timestamp) dbcache.invalidate_caches(timestamp) diff --git a/maloja/web/jinja/abstracts/admin.jinja b/maloja/web/jinja/abstracts/admin.jinja index 9669445..dae7397 100644 --- a/maloja/web/jinja/abstracts/admin.jinja +++ b/maloja/web/jinja/abstracts/admin.jinja @@ -21,10 +21,12 @@ ['setup','Server Setup'], ['settings','Settings'], ['apikeys','API Keys'], - ['manual','Manual Scrobbling'], - ['issues','Database Maintenance'] + ['manual','Manual Scrobbling'] + ] %} - {# ['import','Scrobble Import'] hide page for now #} + {# ['import','Scrobble Import'], + ['issues','Database Maintenance'] + hide for now #} {% if page=='admin_' + tab_url %} {{ tab_name }} {% else %}