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

This commit is contained in:
NikolajDanger
2022-05-24 15:49:46 +02:00
2 changed files with 8 additions and 5 deletions

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)

View File

@ -0,0 +1,6 @@
{% extends "layout.html" %}
{% block content %}
{% for group in groups %}
<p>{{ group.name }}</p>
{% endfor %}
{% endblock content %}