mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-01-18 17:08:48 +00:00
fix
This commit is contained in:
parent
29ce4a724b
commit
ccb88adcb4
2
db.py
2
db.py
@ -2,7 +2,7 @@ import os
|
||||
import json
|
||||
|
||||
if not os.path.exists('config.json'):
|
||||
db = {"our_port": 0000, "ports": [], "domain": "127.0.0.1"}
|
||||
db = {"our_port": 0000, "ports": [], "domain": "http://127.0.0.1:8000"}
|
||||
js = json.dumps(db, indent=2)
|
||||
with open("config.json", "w") as outfile:
|
||||
outfile.write(js)
|
||||
|
@ -42,12 +42,12 @@ def update_sites(n, s_val):
|
||||
domain = read()['domain']
|
||||
# Если есть элемент в поиске
|
||||
if s_val:
|
||||
return html.Div([ dcc.Link(children=i, href=f'http://{domain}:8000/{s_val}',
|
||||
return html.Div([ dcc.Link(children=i, href=f'{domain}/{s_val}',
|
||||
target='_blank') ], className='sites_elem')
|
||||
|
||||
res = []
|
||||
for i in next(walk('cached/'), (None, None, []))[1]:
|
||||
res.append(html.Div([ dcc.Link(children=i, href=f'http://{domain}:8000/{i}',
|
||||
res.append(html.Div([ dcc.Link(children=i, href=f'{domain}/{i}',
|
||||
target='_blank') ], className='sites_elem'))
|
||||
return res
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user