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:
@@ -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')
|
||||
Reference in New Issue
Block a user