From a236a59ecc15c6d861502627467176900d756ff5 Mon Sep 17 00:00:00 2001 From: Yan Date: Thu, 25 Jan 2024 00:17:52 -0700 Subject: [PATCH] limit profiles to topic dojos for now, until we figure out how to deal with the million dojos importing the topic dojos --- dojo_plugin/pages/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo_plugin/pages/users.py b/dojo_plugin/pages/users.py index 631684512..9ba1f9368 100644 --- a/dojo_plugin/pages/users.py +++ b/dojo_plugin/pages/users.py @@ -23,7 +23,7 @@ def view_hacker(user): if user.hidden: abort(404) - dojos = Dojos.query.where(or_(Dojos.official, Dojos.data["type"] == "public")).all() + dojos = Dojos.query.where(or_(and_(Dojos.official, Dojos.data["type"] == "topic"), Dojos.data["type"] == "public")).all() return render_template( "hacker.html",