mirror of https://github.com/kf7eel/hbnet.git
attmempt fix of issue
This commit is contained in:
parent
a28fd43817
commit
c41f91500e
|
|
@ -1313,6 +1313,7 @@ By using this service, you agree not to do anything malicious. You agree to use
|
||||||
if i.ip == '':
|
if i.ip == '':
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
connected = Misc.query.filter_by(field_1='user_system_table_' + i.name).first()
|
connected = Misc.query.filter_by(field_1='user_system_table_' + i.name).first()
|
||||||
connected_list = ast.literal_eval(connected.field_2)
|
connected_list = ast.literal_eval(connected.field_2)
|
||||||
## print(connected_list)
|
## print(connected_list)
|
||||||
|
|
@ -1321,13 +1322,15 @@ By using this service, you agree not to do anything malicious. You agree to use
|
||||||
Self Care
|
Self Care
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
'''
|
'''
|
||||||
for s in connected_list.items():
|
for s in connected_list.items():
|
||||||
for t in s[1]:
|
for t in s[1]:
|
||||||
if str(current_user.username).upper() == t.upper():
|
if str(current_user.username).upper() == t.upper():
|
||||||
clients = clients + '''<li><a class="dropdown-item" href="/bridge_status/''' + i.name + '''/''' + s[0] + '''"">''' + s[0] + '''</a></li>\n'''
|
clients = clients + '''<li><a class="dropdown-item" href="/bridge_status/''' + i.name + '''/''' + s[0] + '''"">''' + s[0] + '''</a></li>\n'''
|
||||||
clients = clients + '''</ul>
|
clients = clients + '''</ul>
|
||||||
</div>'''
|
</div>'''
|
||||||
|
except:
|
||||||
|
clients = ''
|
||||||
|
|
||||||
tool_menu = '''
|
tool_menu = '''
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue