|
|
@@ -37,6 +37,8 @@ if __name__ == '__main__':
|
|
|
# print('interim 2 {}'.format(interim - start))
|
|
|
# pprint(race_days)
|
|
|
|
|
|
+ scratchings_for_database = []
|
|
|
+ messages = []
|
|
|
for race_day in race_days:
|
|
|
if not raw_data_dict or not race_day:
|
|
|
# raw_data_dict may be empty when there is no data available (yet)
|
|
|
@@ -58,8 +60,6 @@ if __name__ == '__main__':
|
|
|
cur1.close()
|
|
|
|
|
|
# compare retrieved scratchings with new data
|
|
|
- scratchings_for_database = []
|
|
|
- messages = []
|
|
|
for scratching in scratchings:
|
|
|
found_in_database = False
|
|
|
# if db_data is None:
|
|
|
@@ -149,7 +149,7 @@ if __name__ == '__main__':
|
|
|
long_message = this_message
|
|
|
else:
|
|
|
long_message += '\n' + this_message
|
|
|
- leftover_message = ''
|
|
|
+ # leftover_message = ''
|
|
|
else:
|
|
|
# Send long message (max 6k characters)
|
|
|
view.broadcast(long_message)
|