The easiest way to reproduce this is to run the tests, since they use SQLite:
python -m pytest
Result: Several tests fail with "peewee.OperationalError: ORDER BY clause should come after UNION not before" at the last line of recent_activity in misc.py.
The easiest way to reproduce this is to run the tests, since they use SQLite:
python -m pytest
Result: Several tests fail with "peewee.OperationalError: ORDER BY clause should come after UNION not before" at the last line of
recent_activity
inmisc.py
.