currencies added
This commit is contained in:
13
server.py
13
server.py
@@ -178,6 +178,19 @@ def SetNews():
|
||||
|
||||
return hello()
|
||||
|
||||
@app.route("/SetWeather", methods=['POST'])
|
||||
def SetWeather():
|
||||
text = request.form['text']
|
||||
|
||||
#args = ['q', 'sources', 'category', 'country']
|
||||
|
||||
f = open( "csv/weather_location.txt", 'w+' )
|
||||
f.write(text)
|
||||
f.close()
|
||||
api_caller.sendline('R')
|
||||
|
||||
return hello()
|
||||
|
||||
@app.route("/DisplayImage", methods=['POST'])
|
||||
def DisplayImage():
|
||||
if request.method == 'POST':
|
||||
|
Reference in New Issue
Block a user