CronEDIT
This commit is contained in:
parent
5d2b45f8b8
commit
49e6017780
3 changed files with 14 additions and 6 deletions
15
app.py
15
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
|
||||
|
|
|
|||
|
|
@ -427,4 +427,7 @@ text-decoration: underline;
|
|||
|
||||
.log-actions button {
|
||||
min-width: 120px;
|
||||
}
|
||||
.automation-card {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
|
@ -209,7 +209,7 @@
|
|||
</form>
|
||||
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card automation-card">
|
||||
|
||||
<h2>Automatisierung</h2>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue