Ver código fonte

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

Afwas [1337627 6 anos atrás
pai
commit
4a759bfdc2
1 arquivos alterados com 7 adições e 5 exclusões
  1. 7 5
      main.py

+ 7 - 5
main.py

@@ -67,11 +67,13 @@ if __name__ == '__main__':
                     found_in_database = True
             if not found_in_database:
                 # 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)
                 view.broadcast(message)
                 # store new scratching