metakgp / metakgp-wiki

Dockerized source for the metakgp wiki.
https://wiki.metakgp.org
GNU General Public License v3.0
23 stars 20 forks source link

[FIX] Update requirements.txt for popular pages & trending pages script #91

Closed thealphadollar closed 3 years ago

thealphadollar commented 3 years ago

As @amrav pointed out in the slack channel, jobs have not been running for a while for updating popular pages and trending pages. On looking at the logs, I found the below interesting message,

time="2020-07-26T01:11:02+05:30" level=info msg="ImportError: No module named oauth2client.service_account" channel=stderr iteration=5 job.command="/root/update_top_trending.sh" job.position=0 job.schedule="11 * * * *"

As can be clearly seen, a python package is amiss. A quick search led me to the solution. Hence, oauth2client was added to the requirements.txt


Testing

I tested the same by opening an interactive shell, installing the dependency, and running the script manually. The script ran perfectly and the main page was updated!