From 7865161341a449dbb1a3c4179aa0d4d8d69b4623 Mon Sep 17 00:00:00 2001 From: Neythen Date: Mon, 29 Nov 2021 15:02:59 +0000 Subject: [PATCH] bigfix --- display_images/Crypto.ppm | Bin 67022 -> 67022 bytes display_images/Forex.ppm | Bin 32462 -> 32462 bytes log.txt | 15 +++++++++++++++ setup_config_files.sh | 4 ++++ startup.sh | 2 +- templates/index.html | 2 +- 6 files changed, 21 insertions(+), 2 deletions(-) diff --git a/display_images/Crypto.ppm b/display_images/Crypto.ppm index fcdf9becfa684e51603dccfa02798c3bc7390567..fc72427168a095a82df46b00ee46815775930bce 100755 GIT binary patch delta 1744 zcmZvdUrbw79LIAv?7X$uuB6zlaJeiXS=UN8)C7TnOEwn?+J!92HW3v=OnhL`#D^sV zLt-*{fZMMGUs!MEB8vPeP8n=6x)`Sf#~O_hMwB)&dl+UA5=}@*@O#cJQlby!&~wiH zeLugyXSOqIwlgbstPjz?lQ8=nn7ZVJYutwRXt|+x^(2&Bd~&gY$JrT2Uc}apBM^0< zD_Vl&LJwRmHk>qTv9Z)>eL5Yv^!nDX7+ixIT04D+g|sg(pH=Yc!~sNCozRChm}ViG zCj5rpPrV$>etHH`b04=f=y5+nTurl#njcfgfeW7z z>flVckX#GGm2kpLIIJr(NS-*3&~t?tsVYNvordHW9wbk>aeXj_f>Z%n+!XTDp^$X0 z?Z%h{S|2`x#f5|1b0hIJ<1_C;X;eiU<7G*NxJUnPyek2(#VUn=hVDjqE{JgIyrG}V z0IVgqwu!H&=;iP#^JR|P#4f~k3g_1@SHr6>*c9-*9gF#hy^px!2w4>e&GF+;_Ra@DZ-D8taa3;Ojy zB<97R*F3Z=Ar1X8gz9_)X>?s;lUJ-iF%m?xzLlCJilp?_sHm)q5p=YoEeH zd&Z^*EB7=OkGN2Vc)w7gY73Jx9n4VHFm=_*+|3!f$0D$2ECgv3^>bzA=TQa8jx1Dt zv_Ke(sB9ludUdi$ zmVSMc`7dBlyhO4w4J=+3ZD_)Yl_@O}^C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3F#UUCh%7cbjpb_zj6ZY zl}l8$Bg%~m8IIWq8ZQ*ETNb93E7ZV}U?as-DLT|+=Pi4!;KNfDzMsbU z$tNjc;@p1&N#kQr6FT#;Cv_uvK1Icnvn`3I{~;zr2W#ZW^9Fl<>QI->9@x%H_3_se#9HEM7s%wrQfEA9)8B1zhXx-eK-tGHi%BqW-ve3%XwI~W!GwlBZ@^(|4 diff --git a/log.txt b/log.txt index e69de29..72cbb6b 100755 --- a/log.txt +++ b/log.txt @@ -0,0 +1,15 @@ +Expecting value: line 1 column 1 (char 0). file: api_caller.py. line: 658. type: + Traceback (most recent call last): + File "api_caller.py", line 658, in + 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) diff --git a/setup_config_files.sh b/setup_config_files.sh index 94525c7..f495b77 100755 --- a/setup_config_files.sh +++ b/setup_config_files.sh @@ -71,3 +71,7 @@ echo [] >> live_games.json echo [] >> past_games.json echo [] >> team_info.csv echo [] >> team_stats.json + +cd ../../.. +sudo chmod -R ugo+rwx csv + diff --git a/startup.sh b/startup.sh index 00a4cfe..c5cc6a8 100755 --- a/startup.sh +++ b/startup.sh @@ -1,3 +1,3 @@ #!/bin/sh cd /home/pi/fintic -python3 server.py +sudo -E python3 server.py diff --git a/templates/index.html b/templates/index.html index f52e01b..23816f1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ - Web Server + Fintic