updated gui and enforcement

This commit is contained in:
2026-09-17 20:41:35 +05:00
parent 77c00c4ed5
commit 47c292f4cd
15 changed files with 3065 additions and 1095 deletions
+10 -11
View File
@@ -1,25 +1,24 @@
import time
from .database import initialize_database
from .scheduler import start_scheduler, stop_scheduler
from .ipc import start_ipc_server, stop_ipc_server
from .ipc import IPCServer
from .scheduler import Scheduler
def main():
initialize_database()
start_ipc_server()
start_scheduler()
scheduler = Scheduler()
ipc = IPCServer()
scheduler.start()
ipc.start()
try:
while True:
time.sleep(60)
ipc._stop_event.wait(3600)
except KeyboardInterrupt:
pass
finally:
stop_scheduler()
stop_ipc_server()
ipc.stop()
scheduler.stop()
if __name__ == "__main__":