fix menu on search callsign page

This commit is contained in:
coulisse 2020-10-04 13:37:08 +00:00
parent 21d3784871
commit 6009f93339
3 changed files with 25 additions and 1 deletions

23
cfg/config.json Normal file
View File

@ -0,0 +1,23 @@
{
"mysql":{
"host":"localhost",
"user":"webdb",
"passwd":"Zw73dp",
"db":"dxcluster"
},
"timer":{
"interval":30000
},
"plot_refresh_timer":{
"interval":450000
},
"mycallsign":"IU1BOW",
"menu": {
"menu_list": [
{"label":"Plots", "link": "/plots.html", "external": false},
{"label":"Sources", "link": "https://github.com/coulisse/spiderweb/" , "external": true},
{"label":"Cookies policy", "link": "/cookies.html", "external": false},
{"label":"Dx Cluster resource", "link": "https://www.dxcluster.info/WebDXCluster/webcluster.htm", "external": true}
]
}
}

View File

@ -2,6 +2,7 @@
___
04/10/2020: 1.2.2
- Added config.sh utilty in script folder, in order to avoid edit manually config.json
- Amend menu on search callsign page
___
21/09/2020: 1.2.1
- Added country column (only on desktop version)

View File

@ -185,7 +185,7 @@ def callsign():
payload=spotquery()
country_data=load_country()
callsign=request.args.get('c')
response=flask.Response(render_template('callsign.html',payload=payload,country_data=country_data,callsign=callsign))
response=flask.Response(render_template('callsign.html',mycallsign=cfg['mycallsign'],menu_list=cfg['menu']['menu_list'],payload=payload,country_data=country_data,callsign=callsign))
return response
if __name__ == '__main__':