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
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def door(username):
@app.route('/spaceapi.json')
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
status = '<lightADC>0</lightADC>' not in cammiestatus.text
response = jsonify({