increase number of BB entries in RSS

This commit is contained in:
KF7EEL 2021-02-28 20:01:29 -08:00
parent 9b19a09eac
commit f4010939dc
3 changed files with 13 additions and 8 deletions

View File

@ -179,7 +179,7 @@ def dashboard_bb_write(call, dmr_id, time, bulletin):
# dash_entries = []
dash_bb.insert(0, {'call': call, 'dmr_id': dmr_id, 'time': time, 'bulletin':bulletin})
with open("/tmp/gps_data_user_bb.txt", 'w') as user_bb_file:
user_bb_file.write(str(dash_bb[:10]))
user_bb_file.write(str(dash_bb[:20]))
user_bb_file.close()
logger.info('User bulletin entry saved.')
#logger.info(dash_bb)

View File

@ -172,7 +172,7 @@ def dashboard_bb_write(call, dmr_id, time, bulletin):
# dash_entries = []
dash_bb.insert(0, {'call': call, 'dmr_id': dmr_id, 'time': time, 'bulletin':bulletin})
with open("/tmp/gps_data_user_bb.txt", 'w') as user_bb_file:
user_bb_file.write(str(dash_bb[:10]))
user_bb_file.write(str(dash_bb[:20]))
user_bb_file.close()
logger.info('User bulletin entry saved.')
#logger.info(dash_bb)

View File

@ -102,8 +102,13 @@ def get_bb_data():
</td>
</tr>
'''
display_number = 10
for e in dash_bb:
if display_number == 0:
break
else:
display_number = display_number - 1
tmp_bb = tmp_bb + '''<tr>
<td style="text-align: center;"><strong>&nbsp;''' + e['call'] + '''&nbsp;</strong></td>
<td style="text-align: center;">''' + str(e['dmr_id']) + '''</td>