-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_main
More file actions
45 lines (26 loc) · 878 Bytes
/
Copy pathdebug_main
File metadata and controls
45 lines (26 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/python3
# Import-ant Libraries
from time import time
from asyncio import run
from internals.logger import log
from internals.handlers import DBHandler, ConnectionHandler, BaseHandler
# from pprint import pprint as pp
# Variables
boot_time = time()
log.notice('Debugger booting-up.') # type: ignore
# Functions
async def main():
await ConnectionHandler.establish_pool()
for handler in BaseHandler.__subclasses__():
await handler.setup()
log.notice(f'Debugger woke up in {str(time() - boot_time)[:4]} seconds.') # type: ignore
from internals.handlers import InProgressHandler
report = await InProgressHandler.get_report(report_id = 1)
report.description = 'New description.'
await report.overwrite()
while True:
pass
return
# Run
DBH = DBHandler()
run(main())