I have a jar application accessed via the endpoint /get_data and providing the number as id ( 127.0.0.1:55555/get_data=56 /get_data )
@app.route('/get_data=<id>') def get_vod_tree(id): ... return render_template('index.html')
It calls a function that extracts some data under this id and creates one json file [static / data.json] with the collected data, and then returns render_template ('index.html').
There is a call to index.html .. / static / data _tree.js, which in turn reads the json file and displays the visualization in the browser using d3.js.
When the application starts, I get the same output in the browser, even when I use a different identifier, and the json file changes. It only works if I restart the application and then access the URL.
My question is: How can I make sure that several users get different outputs according to the identifier or how can I restart the application when I get to the endpoint.
Further thought: if several users use the application, then only one file is created each time
case Jul 22 '16 at 9:48 2016-07-22 09:48
source share