From e754739219dce50840df5844dde7e654280f2f48 Mon Sep 17 00:00:00 2001 From: justuser Date: Wed, 19 Jun 2024 23:28:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?(=D0=BE=D0=BD=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0?= =?UTF-8?q?=D0=B5=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- status.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/status.py b/status.py index 60705b2..b469e84 100644 --- a/status.py +++ b/status.py @@ -19,8 +19,8 @@ def status_check(): def status_set(st): f = open('status', 'w') - if st == True: - f.write('work') + if st == 'work' or st == 'stop': + f.write(st) else: - f.write('stop') + return 404 f.close()