Selaa lähdekoodia

Merge branch 'master' of https://git.fop.pe/Foppe/scratchings

Afwas [1337627 6 vuotta sitten
vanhempi
commit
0644962c9d
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 3
      main.py

+ 6 - 3
main.py

@@ -1,6 +1,6 @@
 import psycopg2.extras
 import model
-#from pprint import pprint
+# from pprint import pprint
 import time
 import database
 import sys
@@ -68,8 +68,11 @@ if __name__ == '__main__':
                     found_in_database = True
             if not found_in_database:
                 # 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)
                 view.broadcast(message)
                 # store new scratching