PMA-2020 / pma-api

The best way to programmatically access PMA2020 data.
http://api.pma2020.org
MIT License
1 stars 3 forks source link

Refresh datasets table after upload #46

Closed joeflack4 closed 5 years ago

joeflack4 commented 5 years ago

Description

After uploading a file, the page does not automatically refresh. I'm having trouble doing this with Flask's return render_template() and return redirect(). @bciar I'm wondering if you could help.

Screenshot 1 - load /admin 1

Screenshot 2 - select a file; it automatically makes post request, but page does not change 2

Screenshot 3 - after I refresh the page with ctrl+r, now I can see the new data. but I want this to be refreshed automatically 3


Attachments

  1. This is the file I uploaded. I think you will need to set up your database first if you want to upload this. api_data-2018.03.19-v29-SAS.xlsx.zip
joeflack4 commented 5 years ago

@bciar I will close this, because I think this will work on the server.

If we need to fix a Windows-specific issue, I can re-open this issue if you want.