|
|
@@ -140,13 +140,13 @@ def store_scratched_horses(db, full_scratches):
|
|
|
this_scratching.race, this_scratching.horse_no,
|
|
|
this_scratching.horse_display_name)
|
|
|
cur3.execute(query, database_entry)
|
|
|
- print('Stored: {}'.format(database_entry))
|
|
|
- print(cur3.statusmessage)
|
|
|
match = re.match(regex, cur3.statusmessage)
|
|
|
status = 0
|
|
|
if match:
|
|
|
status = int(match.group(1))
|
|
|
if status > 0:
|
|
|
+ print('Stored: {}'.format(database_entry))
|
|
|
+ print(cur3.statusmessage)
|
|
|
scratches_to_return.append(this_scratching)
|
|
|
|
|
|
cur3.close()
|