Добавление кнопки выключения (она работает)

This commit is contained in:
justuser 2024-06-19 23:28:34 +03:00
parent a52fb2679a
commit e754739219

View File

@ -19,8 +19,8 @@ def status_check():
def status_set(st): def status_set(st):
f = open('status', 'w') f = open('status', 'w')
if st == True: if st == 'work' or st == 'stop':
f.write('work') f.write(st)
else: else:
f.write('stop') return 404
f.close() f.close()