Rechtstreeks pushen op master om @mcbloch gelukkig te maken

This commit is contained in:
redfast00 2020-02-13 13:52:58 +01:00
parent 6633de2d3e
commit d37baaec70
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -142,7 +142,7 @@ def door(username):
@app.route('/spaceapi.json') @app.route('/spaceapi.json')
def spaceapi(): def spaceapi():
cammiestatus = requests.get('https://kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi') cammiestatus = requests.get('https://kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi', timeout=1)
# Avoid XML parsing # Avoid XML parsing
status = '<lightADC>0</lightADC>' not in cammiestatus.text status = '<lightADC>0</lightADC>' not in cammiestatus.text
response = jsonify({ response = jsonify({