forked from Trygve/otime
Pdf debugging
This commit is contained in:
parent
68e437fd41
commit
cdaa8e2807
28
dev.py
28
dev.py
@ -6,20 +6,16 @@ from rich.console import Console
|
|||||||
from rich.columns import Columns
|
from rich.columns import Columns
|
||||||
from rich.table import Table
|
from rich.table import Table
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
event = otime.Event(0, 'Jukola-testløp')
|
event = otime.Event(0, 'testevent')
|
||||||
#event.import_ttime_cnf('k2ds/tt.cnf')
|
event.import_xml_entries('k2ds/entries.xml')
|
||||||
#event.import_ttime_db('k2ds/db.csv')
|
event.import_mtr_file(open('k2ds/mtr.txt', 'r'))
|
||||||
#event.import_mtr_file('k2ds/mtr.txt')
|
|
||||||
#card_punches = otime.card_punch.list_from_mtr_f('sc_2021_ttime/mtr.csv')
|
event.match_all()
|
||||||
#event.match_runners_cards()
|
for runner in event.runners:
|
||||||
#event.create_start_list_pdf('starttimes.pdf')
|
print(runner.fullname(), runner.fee.name)
|
||||||
#event.get_xml_res().write('Resultater.xml')
|
|
||||||
event.import_ttime_cnf('/home/trygve/Dokumenter/Jukola_uttak/tt.cnf')
|
with open('test.otime', 'w') as f:
|
||||||
event.runners = otime.runners_from_xml_entries('/home/trygve/Dokumenter/Jukola_uttak/entries_Nattøkt,_Jukola-testløp.xml', event.o_classes)
|
f.write(event.create_json_file())
|
||||||
event.card_dumps = mtr.dump_all('/dev/ttyUSB0')
|
|
||||||
event.match_runners_cards()
|
event.create_invoices('test.pdf')
|
||||||
event.get_xml_res().write('Resultater_uttak.xml')
|
|
||||||
for n in event.card_dumps:
|
|
||||||
print(n.card, n.controls)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user