bugfixes
This commit is contained in:
10
server.py
10
server.py
@@ -21,6 +21,10 @@ import numpy as np
|
||||
import copy
|
||||
#stock_ticker = StockTicker()
|
||||
#print('API CALLER NOT STARTED')
|
||||
|
||||
#open('log.txt', 'w').close() #wipe logs
|
||||
|
||||
|
||||
api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py")
|
||||
api_caller.sendline('A')
|
||||
displaying_screensaver = False
|
||||
@@ -238,7 +242,7 @@ def save():
|
||||
@app.route("/upload", methods = ['PUT', 'POST', 'GET'])
|
||||
def upload():
|
||||
try:
|
||||
remove_old_uploads()
|
||||
|
||||
images = request.files
|
||||
names = list(request.files.keys())
|
||||
|
||||
@@ -458,8 +462,7 @@ def save_weather_settings(input_settings):
|
||||
current_settings['animation'] = input_settings['animation'].lower()
|
||||
current_settings['temp'] = input_settings['temp'].lower()
|
||||
current_settings['wind_speed'] = input_settings['wind_speed'].lower()
|
||||
current_settings['colour'] = input_settings['colour'].lower()
|
||||
current_settings['city_colour'] = input_settings['city_colour'].lower()
|
||||
|
||||
current_settings['title'] = input_settings['title']
|
||||
|
||||
if input_settings['feature'] == 'Daily Forecast':
|
||||
@@ -532,6 +535,7 @@ def save_image_settings(input_settings):
|
||||
|
||||
del current_settings['feature']
|
||||
json.dump(current_settings, open('csv/' + filename, 'w+'))
|
||||
remove_old_uploads()
|
||||
|
||||
|
||||
def save_message_settings(input_settings):
|
||||
|
Reference in New Issue
Block a user