This commit is contained in:
Neythen 2021-11-29 15:02:59 +00:00
parent b32fb2307d
commit 7865161341
6 changed files with 21 additions and 2 deletions

Binary file not shown.

Binary file not shown.

15
log.txt
View File

@ -0,0 +1,15 @@
Expecting value: line 1 column 1 (char 0). file: api_caller.py. line: 658. type: <class 'json.decoder.JSONDecodeError'>
Traceback (most recent call last):
File "api_caller.py", line 658, in <module>
if checkStocks(stock_time, stock_frequency) or msg == 's':
File "api_caller.py", line 571, in checkStocks
all_stocks_settings = json.load(f)
File "/usr/lib/python3.7/json/__init__.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

View File

@ -71,3 +71,7 @@ echo [] >> live_games.json
echo [] >> past_games.json echo [] >> past_games.json
echo [] >> team_info.csv echo [] >> team_info.csv
echo [] >> team_stats.json echo [] >> team_stats.json
cd ../../..
sudo chmod -R ugo+rwx csv

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
cd /home/pi/fintic cd /home/pi/fintic
python3 server.py sudo -E python3 server.py

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Server</title> <title>Fintic</title>
<!-- Bootstrap 5 CDN Links --> <!-- Bootstrap 5 CDN Links -->
<link <link