Merge branch 'main' of git.ingemanngade.net:NikolajDanger/UIS_Prototype
This commit is contained in:
@ -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
aula/templates/groups.html
Normal file
6
aula/templates/groups.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
{% for group in groups %}
|
||||
<p>{{ group.name }}</p>
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user