Categories

Hm.... it's misleading. The better would be to assing "None" or - what I prefere:

if language:
    entries = ....
else:
    entries = None

Or as a shorcut:

entries = entries.filter_by(....) if language else None