Changes
After doing a lot of brainstorming, I finally found a simple hack to fix the empty ongoing list issue.
Just by adding a timeout of 3 seconds before rendering the home page, the cheerio and request functions are able to load the data completely before being passed to the frontend script.
Note
PR #14 had some previous commits added due to some error. This is a revised PR for the same changes with those commits removed. Merging #15 will merge this PR automatically.
Linked issue: #10
Changes After doing a lot of brainstorming, I finally found a simple hack to fix the empty ongoing list issue. Just by adding a timeout of 3 seconds before rendering the home page, the cheerio and request functions are able to load the data completely before being passed to the frontend script.
Note PR #14 had some previous commits added due to some error. This is a revised PR for the same changes with those commits removed. Merging #15 will merge this PR automatically.
Screenshot for reference