-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No feed returned when running recommendation twice #6
Comments
Thanks for asking! python3 answerable.py recommend -F -u 1 You can find all the options here.
Edit: Note that even with the |
Wouldn't it make more sense to just return the last retrieved questions if the same request is triggered multiple times? Also, what is the cache timeout for this? |
My intention is to do it in a future version, because as you say, it actually makes more sense, but right now I don't have much time for that. Given how the RSS feed and API return their data and how it is cached, it could be somewhat messy and reduce the quality of the recommendations if not managed carefully. For this version, an easy workaround could be to use the following bash script: date >> recommendations.txt
python3 answerable.py recommend -u 1 >> recommendations.txt
cat recommendations.txt And just remove Until I get my hands back on Answerable, feel free to suggest anything, I appreciate any feedback. I'm reopening the issue again, I think it may be interesting to take this into account for the next version. Edit: Also, contributions are open ;) |
Bug Description
When running
python3 answerable.py recommend
the first time, questions are recommended as planned.However, when running it multiple times (with the same user id), the following error occurs:
Steps to reproduce
Expected results
It should print actual questions, cached or not
Actual results
No feed returned
Full log in answerable.log
Details
This is likely a caching issue as Answerable runs successfully after deleting
.cache/spider.rss
.Instead of printing cached answers, it shows no answers at all.
It might not happen the second time, but running it multiple times should do it.
Logs
Log when running it the first time (successfully):
Log when running again afterwards:
System details
WSL 2 (Ubuntu) on Windows 10
Workaround
When
python3 answerable.py recommend
fails with the messageNo feed returned
, run the following command and try again:The text was updated successfully, but these errors were encountered: