Changed back the SQL query in /mail route

This commit is contained in:
ngolp 2024-08-14 11:44:19 -04:00 committed by Cara Salter
parent 29cdcf1899
commit c73184060c

View file

@ -74,9 +74,8 @@ def admin_list():
def mail(): def mail():
if not current_user.is_admin: if not current_user.is_admin:
return redirect(url_for("dashboard.home")) return redirect(url_for("dashboard.home"))
total_count = len(db.session.execute(db.select(User).where(User.is_admin == False)).scalars().all()) total_count = len(db.session.execute(db.select(User)).scalars().all())
# total_count = len(db.session.execute(db.select(User)).scalars().all())
api_key = current_app.config["MCE_API_KEY"] api_key = current_app.config["MCE_API_KEY"]
return render_template("mail.html", NUM_HACKERS=total_count, return render_template("mail.html", NUM_HACKERS=total_count,