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():
|
def get_cron_jobs():
|
||||||
|
|
||||||
jobs = {
|
jobs = {
|
||||||
"balance": "nur unter Linux verfügbar",
|
"balance": "",
|
||||||
"transactions": "nur unter Linux verfügbar",
|
"transactions": "",
|
||||||
"categorize": "nur unter Linux verfügbar"
|
"categorize": ""
|
||||||
}
|
}
|
||||||
|
|
||||||
if platform.system() != "Linux":
|
if platform.system() != "Linux":
|
||||||
|
|
@ -262,13 +262,18 @@ def get_cron_jobs():
|
||||||
|
|
||||||
for line in result.stdout.splitlines():
|
for line in result.stdout.splitlines():
|
||||||
|
|
||||||
|
line = line.strip()
|
||||||
|
|
||||||
|
if not line or line.startswith("#"):
|
||||||
|
continue
|
||||||
|
|
||||||
if "balance.py" in line:
|
if "balance.py" in line:
|
||||||
jobs["balance"] = " ".join(line.split()[:5])
|
jobs["balance"] = " ".join(line.split()[:5])
|
||||||
|
|
||||||
elif "transactions.py" in line:
|
if "transactions.py" in line:
|
||||||
jobs["transactions"] = " ".join(line.split()[:5])
|
jobs["transactions"] = " ".join(line.split()[:5])
|
||||||
|
|
||||||
elif "categorize_transactions.py" in line:
|
if "categorize_transactions.py" in line:
|
||||||
jobs["categorize"] = " ".join(line.split()[:5])
|
jobs["categorize"] = " ".join(line.split()[:5])
|
||||||
|
|
||||||
return jobs
|
return jobs
|
||||||
|
|
|
||||||
|
|
@ -427,4 +427,7 @@ text-decoration: underline;
|
||||||
|
|
||||||
.log-actions button {
|
.log-actions button {
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
|
}
|
||||||
|
.automation-card {
|
||||||
|
grid-column: 1 / -1;
|
||||||
}
|
}
|
||||||
|
|
@ -209,7 +209,7 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card automation-card">
|
||||||
|
|
||||||
<h2>Automatisierung</h2>
|
<h2>Automatisierung</h2>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue