Add groups template

This commit is contained in:
Mikkel committed 2022-05-24 15:45:56 +02:00
1 parent 4122fb57aa
commit 542dcc05b0
2 files changed
+8 -5

No files matched your search

+2 -5
View File
@@ -7,9 +7,6 @@ Group = Blueprint('Group', __name__)
@Group.route("/groups/index", methods=['GET'])
def index():
user = select_users_by_id(5000)
groups = user.get_groups()
for group in groups:
print(group.name)
return "hej"
groups = current_user.get_groups()
return render_template('groups.html', groups=groups)