|
|
@@ -8,7 +8,7 @@ import time
|
|
|
import database
|
|
|
import sys
|
|
|
# import view
|
|
|
-# import arrow
|
|
|
+import arrow
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
row = -1
|
|
|
@@ -164,6 +164,8 @@ if __name__ == '__main__':
|
|
|
# pprint(full_scratchings)
|
|
|
# print('len(full_scratchings): {}'.format(len(full_scratchings)))
|
|
|
|
|
|
+ if (arrow.utcnow().minute + 4) % 20 == 0:
|
|
|
+ pprint(full_scratchings)
|
|
|
scratchings_to_be_broadcast = model.store_scratched_horses(db, full_scratchings)
|
|
|
# print('len(scratchings_to_be_broadcast): {}'.format(len(scratchings_to_be_broadcast)))
|
|
|
model.send_messages(scratchings_to_be_broadcast, 'RA')
|