mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 01:37:38 +00:00
Fix
This commit is contained in:
parent
cca41a5d7a
commit
d8cd870ce9
@ -40,11 +40,13 @@ def update_servers(n):
|
|||||||
def update_sites(n, s_val):
|
def update_sites(n, s_val):
|
||||||
# Если есть элемент в поиске
|
# Если есть элемент в поиске
|
||||||
if s_val:
|
if s_val:
|
||||||
return html.Div([s_val], className='sites_elem')
|
return html.Div([ dcc.Link(children=i, href=f'http://0.0.0.0:8000/{s_val}',
|
||||||
|
target='_blank') ], className='sites_elem')
|
||||||
|
|
||||||
res = []
|
res = []
|
||||||
for i in next(walk('cached/'), (None, None, []))[1]:
|
for i in next(walk('cached/'), (None, None, []))[1]:
|
||||||
res.append(html.Div([i], className='sites_elem'))
|
res.append(html.Div([ dcc.Link(children=i, href=f'http://0.0.0.0:8000/{i}',
|
||||||
|
target='_blank') ], className='sites_elem'))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
# Обновление доступных сайтов в поиске
|
# Обновление доступных сайтов в поиске
|
||||||
|
Loading…
Reference in New Issue
Block a user