fixes
This commit is contained in:
@@ -587,13 +587,25 @@ def handle_check_race_course(self,
|
||||
endsecond=endsecond,
|
||||
)
|
||||
|
||||
|
||||
with engine.connect() as conn, conn.begin():
|
||||
result = conn.execute(query)
|
||||
|
||||
conn.close()
|
||||
engine.dispose()
|
||||
|
||||
# add times for all gates to log file
|
||||
with open(logfile,'a') as f:
|
||||
t = time.localtime()
|
||||
f.write('\n')
|
||||
f.write(timestamp)
|
||||
f.write(' ')
|
||||
f.write('--- LOG of all gate times---')
|
||||
|
||||
for path,polygon in (paths,polygons):
|
||||
( secs,meters,completed) = coursetime_paths(rowdata2,
|
||||
[path],[polygon],logfile=logfile)
|
||||
|
||||
|
||||
# send email
|
||||
handle_sendemail_coursefail(
|
||||
useremail,userfirstname,logfile
|
||||
|
||||
Reference in New Issue
Block a user