Extract url
This commit is contained in:
parent
ac9f137e8f
commit
60f6e6b339
1 changed files with 8 additions and 4 deletions
12
app.py
12
app.py
|
@ -8,8 +8,11 @@ app = Flask(__name__)
|
|||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
cal_str = urllib.request.urlopen(
|
||||
"***REMOVED***").read()
|
||||
url = os.environ.get('URL', None)
|
||||
if url is None:
|
||||
return ""
|
||||
|
||||
cal_str = urllib.request.urlopen(url).read()
|
||||
|
||||
FILTERED_EVENTS = [
|
||||
'MGL',
|
||||
|
@ -18,8 +21,9 @@ def hello():
|
|||
'COM',
|
||||
'RSM',
|
||||
'ANG1',
|
||||
'DLG',
|
||||
'SPO',
|
||||
'DLG1',
|
||||
'SPO1',
|
||||
'SPO2',
|
||||
'STA1',
|
||||
'PST',
|
||||
'SEC',
|
||||
|
|
Loading…
Reference in a new issue