cahnge urls
This commit is contained in:
+2
-2
@@ -5,10 +5,10 @@ import os
|
||||
|
||||
|
||||
def index(request):
|
||||
if not os.path.isfile("/tmp/data.json"):
|
||||
if not os.path.isfile("/home/areion/tmp/data.json"):
|
||||
data = {"trees": str({ "trees": []}) }
|
||||
else:
|
||||
with open("/tmp/data.json", "r") as f:
|
||||
with open("/home/areion/tmp/data.json", "r") as f:
|
||||
loaded = json.load(f)
|
||||
s = json.dumps(loaded);
|
||||
data = {"trees": s}
|
||||
|
||||
Reference in New Issue
Block a user