increase number of BB entries in RSS
This commit is contained in:
parent
9b19a09eac
commit
f4010939dc
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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> ''' + e['call'] + ''' </strong></td>
|
||||
<td style="text-align: center;">''' + str(e['dmr_id']) + '''</td>
|
||||
|
Loading…
Reference in New Issue
Block a user