diff --git a/cfg/config.json b/cfg/config.json new file mode 100644 index 0000000..457c21f --- /dev/null +++ b/cfg/config.json @@ -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} + ] + } +} diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b2dac97..93d36c7 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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) diff --git a/webapp.py b/webapp.py index 3e2136f..c37694c 100644 --- a/webapp.py +++ b/webapp.py @@ -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__':