learningequality / ka-lite

KA Lite: lightweight web server for serving core Khan Academy content (videos and exercises) without needing internet connectivity
https://learningequality.org/ka-lite/
Other
456 stars 306 forks source link

RPi fix: Make running retrievecontentpack download NOT update the DB #5578

Closed benjaoming closed 6 years ago

benjaoming commented 6 years ago

Summary

Before, we called update_stage, which would write progress to the DB. A pretty bad idea.

On RPi, it basically meant it was impossible to run retrievecontentpack in some cases.

Thanks @holta for reporting this!

TODO

If not all TODOs are marked, this PR is considered WIP (work in progress)

Reviewer guidance

I know this isn't necessarily nicely done or follows through with any kind of consequence for other commands, but this fixes the immediate issue for RPi.

Issues addressed

5575

4892