rohithill / nithp

View NITH result live.
https://nithp.herokuapp.com/
7 stars 7 forks source link

[Feature] - Update a particular result #8

Closed RohitKaushal7 closed 3 years ago

RohitKaushal7 commented 3 years ago

Reason Results of some Students get updated dynamically ( on times we don't expect ) eg -

Solution / Feature Need an API endpoint [POST] to update a particular result by re scraping it from the official website.

rohithill commented 3 years ago

Currently the result is stored inside a git repo and the website is hosted on heroku which doesn't persist the changes made to the disk. So if updated result is written to the disk, it will be removed soon after. What will be the easiest way to solve this?

RohitKaushal7 commented 3 years ago

the solution would be to use a different hosting for database like

but since the project is using SQLite , that is not possible. so maybe the dbms need to be changed.

but its fine - so basically to update any result the repository needs to be updated. so maybe no solution other than manually creating a commit with the updated result.

RohitKaushal7 commented 3 years ago

@rohithill you can consider using Heroku Postgres for database, however Its free tier ( hobby dev ) has a limit of 10,000 rows max which will soon get filled up in 2-3 years 😅, but I think adding database will eliminate the need to commit result to repository every time and can be easily done by remotely executing the script through your website. just an opinion though.

rohithill commented 3 years ago

I'll check this out.