added reset button and fixed javascript bugs

This commit is contained in:
Neythen Treloar
2022-02-26 16:35:15 +00:00
parent d71b2af8fb
commit 20bfab5574
6 changed files with 42 additions and 23 deletions

View File

@@ -345,7 +345,7 @@ def updateWeather(api_key):
all_current_settings['locations'] = current_weathers
all_daily_settings['locations'] = daily_weathers
print(all_current_settings, all_daily_settings)
json.dump( all_current_settings, open( "csv/current_weather.json", 'w+' ))
json.dump( all_daily_settings, open( "csv/daily_weather.json", 'w+' ))
@@ -611,7 +611,7 @@ if __name__ == '__main__':
last_updates = {"stocks": "27/06/2021 07:05:39", "crypto": "27/06/2021 07:05:39", "news": "27/06/2021 07:05:39", "weather": "27/06/2021 07:05:39", "forex": "27/06/2021 07:05:39", "sports": "27/06/2021 07:05:39"}
t = time.time()
try:
while True: