Commit adee9f3f authored by dominik.rimpf's avatar dominik.rimpf 🐿
Browse files

FIX: url formatting

parent 4e4fbccf
......@@ -7,7 +7,7 @@ from net_suite import app, ModMetaData
bb_name = 'apliste'
apliste = Blueprint(bb_name, __name__)
version = requests.get(app.config.get('APLISTE_SERVER_URL') + '/version',
version = requests.get('{url}/version'.format(url=app.config.get('APLISTE_SERVER_URL')),
cert=(app.config.get('APLISTE_CERT'), app.config.get('APLISTE_KEY'))).json()
METADATA = ModMetaData(name=bb_name, mod_path=__name__, gitlab_url='https://git.scc.kit.edu/scc-net-wlan/ap-liste',
......
......@@ -7,6 +7,6 @@ from . import apliste
@apliste.route("/json", methods=["GET"])
def get_data():
data = requests.get(app.config.get('APLISTE_SERVER_URL') + '/json',
data = requests.get('{url}/json'.format(url=app.config.get('APLISTE_SERVER_URL')),
cert=(app.config.get('APLISTE_CERT'), app.config.get('APLISTE_KEY'))).json()
return jsonify(data)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment