Merge branch 'main' of git.ingemanngade.net:NikolajDanger/UIS_Prototype

This commit is contained in:
NikolajDanger committed 2022-05-24 15:49:46 +02:00
commit 12a76158ed
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)
+6
View File
@@ -0,0 +1,6 @@
{% extends "layout.html" %}
{% block content %}
{% for group in groups %}
<p>{{ group.name }}</p>
{% endfor %}
{% endblock content %}