|
@@ -1,6 +1,6 @@
|
|
|
import psycopg2.extras
|
|
import psycopg2.extras
|
|
|
import model
|
|
import model
|
|
|
-#from pprint import pprint
|
|
|
|
|
|
|
+# from pprint import pprint
|
|
|
import time
|
|
import time
|
|
|
import database
|
|
import database
|
|
|
import sys
|
|
import sys
|
|
@@ -68,8 +68,11 @@ 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: {} {} race {} horse {}'.format(scratching.date, scratching.venue,
|
|
|
|
|
- scratching.race, scratching.horse)
|
|
|
|
|
|
|
+ message = 'New scratching: date = {} venue = {}-{} race = {} horse = {}'.format(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
|