Rechtstreeks pushen op master om @mcbloch gelukkig te maken
This commit is contained in:
parent
6633de2d3e
commit
d37baaec70
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue