Attempt at doing json

I fucked up big time. I have attempted to make a custom made chart, while, to my knowledge, one is readily available and more easily incorporated to the website design.
This commit is contained in:
ANormalPerson1
2019-03-21 21:18:05 +01:00
parent 6c63adcdfb
commit 9677273f55
6 changed files with 76 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
from flask import Flask
app = Flask(__name__)
@app.route('/', methods = ['GET', 'POST'])
def index():
value = request.json['key']
return value
if __name__ == '__main__':
app.run
test = open("JsonJs", "r")
req = requests.post('C:/Users/Janez%20Dolzan/Documents/Python%20projects/Spektrometer/GitHub/TeraHz/frontend/website.html')