Fix crash on needs tags in user todo

This commit is contained in:
rubenwardy 2022-01-29 20:23:15 +00:00
parent 2db2f61992
commit 1cfc152d3b

@ -185,8 +185,8 @@ def view_user(username=None):
.all() .all()
needs_tags = user.maintained_packages \ needs_tags = user.maintained_packages \
.filter(Package.state != PackageState.DELETED) \ .filter(Package.state != PackageState.DELETED, Package.tags==None) \
.filter_by(tags=None).order_by(db.asc(Package.title)).all() .order_by(db.asc(Package.title)).all()
return render_template("todo/user.html", current_tab="user", user=user, return render_template("todo/user.html", current_tab="user", user=user,
unapproved_packages=unapproved_packages, outdated_packages=outdated_packages, unapproved_packages=unapproved_packages, outdated_packages=outdated_packages,