When calling get_top_packages on return result set filtering im getting this error
sqlalchemy.exc.ArgumentError: Textual SQL expression "package.id = 'b4e66cda-2e..." should be explicitly declared as text("package.id = 'b4e66cda-2e...")
Possible solution is to wrap the expression with the sqlalchemy text
When calling
get_top_packages
on return result set filtering im getting this errorsqlalchemy.exc.ArgumentError: Textual SQL expression "package.id = 'b4e66cda-2e..." should be explicitly declared as text("package.id = 'b4e66cda-2e...")
Possible solution is to wrap the expression with the sqlalchemy
text
q.filter(text("package.id = '%s'" % package_id))