|
|
|
@ -3,6 +3,7 @@ from math import ceil
|
|
|
|
|
from flask import Blueprint, request, render_template, flash
|
|
|
|
|
|
|
|
|
|
from suchwow._models import Post, User, TipReceived
|
|
|
|
|
from suchwow.wownero import from_atomic
|
|
|
|
|
|
|
|
|
|
bp = Blueprint('main', 'main')
|
|
|
|
|
|
|
|
|
@ -50,4 +51,10 @@ def index():
|
|
|
|
|
@bp.route("/about")
|
|
|
|
|
def about():
|
|
|
|
|
mods = User.select().where(User.moderator == True)
|
|
|
|
|
return render_template("about.html", mods=mods)
|
|
|
|
|
return render_template(
|
|
|
|
|
"about.html",
|
|
|
|
|
mods=mods,
|
|
|
|
|
meme_count=Post.select().where(Post.approved == True).count(),
|
|
|
|
|
wow_received=round(from_atomic(sum([i.amount for i in TipReceived.select()])), 2),
|
|
|
|
|
memer_count=User.select().count(),
|
|
|
|
|
)
|