home: missing proxy count
This commit is contained in:
parent
9e976d28b5
commit
dc59921498
1 changed files with 2 additions and 1 deletions
|
@ -31,10 +31,11 @@ def format_datetime(s):
|
|||
def portal_home():
|
||||
groups = Group.query.order_by(Group.group_name).all()
|
||||
now = datetime.now(timezone.utc)
|
||||
proxies = Proxy.query.filter(Proxy.destroyed == None).all()
|
||||
last24 = len(Proxy.query.filter(Proxy.deprecated > (now - timedelta(days=1))).all())
|
||||
last72 = len(Proxy.query.filter(Proxy.deprecated > (now - timedelta(days=3))).all())
|
||||
lastweek = len(Proxy.query.filter(Proxy.deprecated > (now - timedelta(days=7))).all())
|
||||
return render_template("home.html.j2", section="home", groups=groups, last24=last24, last72=last72, lastweek=lastweek)
|
||||
return render_template("home.html.j2", section="home", groups=groups, last24=last24, last72=last72, lastweek=lastweek, proxies=proxies)
|
||||
|
||||
|
||||
@portal.route("/groups")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue