2022-03-11 14:33:09 +00:00
|
|
|
import otime
|
|
|
|
import pickle
|
2022-03-13 16:33:26 +00:00
|
|
|
import asyncio
|
|
|
|
from watchgod import awatch
|
2022-03-11 14:33:09 +00:00
|
|
|
from config import config
|
|
|
|
from rich import print
|
|
|
|
from rich import inspect
|
|
|
|
from rich.console import Console
|
|
|
|
from rich.columns import Columns
|
|
|
|
from rich.table import Table
|
|
|
|
|
2022-03-13 16:33:26 +00:00
|
|
|
def start():
|
2022-03-11 14:33:09 +00:00
|
|
|
event = otime.event(0, config['event_name'])
|
|
|
|
event.import_ttime_cnf('/home/trygve/Documents/sprintcup040330/sprintcup040330.cnf')
|
|
|
|
event.import_ttime_db(config['db_file'])
|
|
|
|
event.import_mtr_file('/home/trygve/Documents/sprintcup040330/sprintcup040330.log')
|
|
|
|
event.match_runners_cards()
|
|
|
|
event.get_xml_res().write(config['xml_res_file'])
|
|
|
|
|
2022-03-13 16:33:26 +00:00
|
|
|
async def main():
|
|
|
|
async for changes in awatch(config['db_file']):
|
|
|
|
print(changes)
|
2022-03-11 14:33:09 +00:00
|
|
|
if __name__ == "__main__":
|
2022-03-13 16:33:26 +00:00
|
|
|
start()
|
|
|
|
asyncio.run(main())
|