|
@@ -67,11 +67,13 @@ if __name__ == '__main__':
|
|
|
found_in_database = True
|
|
found_in_database = True
|
|
|
if not found_in_database:
|
|
if not found_in_database:
|
|
|
# report new scratching
|
|
# report new scratching
|
|
|
- message = 'New scratching: venue = {} {}-{} | race = {} | horse = {}'.format(scratching.date,
|
|
|
|
|
- scratching.state,
|
|
|
|
|
- scratching.venue,
|
|
|
|
|
- scratching.race,
|
|
|
|
|
- scratching.horse)
|
|
|
|
|
|
|
+ day_abbr = scratching.date.strftime('%a')
|
|
|
|
|
+ message = 'New scratching: venue = {} {} {}-{} | race = {} | horse = {}'.format(day_abbr,
|
|
|
|
|
+ scratching.date,
|
|
|
|
|
+ scratching.state,
|
|
|
|
|
+ scratching.venue,
|
|
|
|
|
+ scratching.race,
|
|
|
|
|
+ scratching.horse)
|
|
|
print(message)
|
|
print(message)
|
|
|
view.broadcast(message)
|
|
view.broadcast(message)
|
|
|
# store new scratching
|
|
# store new scratching
|