From 5c23097873e7ce690d5b3b70d79396fb9d2865ff Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 3 Jul 2023 11:43:57 +0200 Subject: [PATCH] fixed some issues preventing the programm to start (...) --- Flask/app.py | 8 ++++---- version | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 7be8a32..35b8892 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -27,9 +27,9 @@ if secret == "": """ def daily_command(): subprocess.Popen(["git",'pull']) - subprocess.Popen(["pkill",'-9', "chrome"]) - subprocess.Popen(["pkill",'-9', "Xvfb"]) - subprocess.Popen(["pkill",'-9', "undetected_chromedriver"]) + subprocess.Popen(["pkill -9 chrome"]) + subprocess.Popen(["pkill -9 Xvfb"]) + subprocess.Popen(["pkill -9 undetected_chromedriver"]) scheduler = BackgroundScheduler() @@ -46,7 +46,7 @@ scheduler.add_job( # on relance le job def start_ms(i): print("\033[32m" + f"Starting config {i}" + "\033[0m") log = open(f"/app/MsRewards-Reborn/user_data/logs/{i}.txt", 'a') # so that data written to it will be appended - subprocess.Popen(["python3",'-u' ,"/app/MsRewards-Reborn/V6.py", "-c", i], stdout=log, stderr=log, shell=True) + subprocess.Popen([f"python3 -u /app/MsRewards-Reborn/V6.py -c {i}"], stdout=log, stderr=log, shell=True) log.close() diff --git a/version b/version index 00be580..201d749 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.0.8 +v6.0.9