diff --git a/app.py b/app.py index bc751a5..e114a56 100644 --- a/app.py +++ b/app.py @@ -246,9 +246,9 @@ def get_balance_color(balance): def get_cron_jobs(): jobs = { - "balance": "nur unter Linux verfügbar", - "transactions": "nur unter Linux verfügbar", - "categorize": "nur unter Linux verfügbar" + "balance": "", + "transactions": "", + "categorize": "" } if platform.system() != "Linux": @@ -262,13 +262,18 @@ def get_cron_jobs(): for line in result.stdout.splitlines(): + line = line.strip() + + if not line or line.startswith("#"): + continue + if "balance.py" in line: jobs["balance"] = " ".join(line.split()[:5]) - elif "transactions.py" in line: + if "transactions.py" in line: jobs["transactions"] = " ".join(line.split()[:5]) - elif "categorize_transactions.py" in line: + if "categorize_transactions.py" in line: jobs["categorize"] = " ".join(line.split()[:5]) return jobs diff --git a/static/style.css b/static/style.css index 652ec0a..57834a8 100644 --- a/static/style.css +++ b/static/style.css @@ -427,4 +427,7 @@ text-decoration: underline; .log-actions button { min-width: 120px; +} +.automation-card { + grid-column: 1 / -1; } \ No newline at end of file diff --git a/templates/maintenance.html b/templates/maintenance.html index 925dc5f..429fb24 100644 --- a/templates/maintenance.html +++ b/templates/maintenance.html @@ -209,7 +209,7 @@ -