Changed back the SQL query in /mail route
This commit is contained in:
parent
44673d1b07
commit
a46a6b2831
1 changed files with 2 additions and 3 deletions
|
@ -75,8 +75,7 @@ def mail():
|
|||
if not current_user.is_admin:
|
||||
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"]
|
||||
|
||||
return render_template("mail.html", NUM_HACKERS=total_count,
|
||||
|
|
Loading…
Add table
Reference in a new issue