bug found
parent
f837501f10
commit
298fc96624
|
@ -30,6 +30,7 @@ def get_matches(user_id):
|
|||
|
||||
@bp.route("/", methods=("GET", "POST"))
|
||||
def index():
|
||||
#@TODO its buggs, not symetrical for users, shouldnt show if only you said yes
|
||||
if not 'user_id' in session:
|
||||
redirect(url_for('index'))
|
||||
|
||||
|
@ -40,7 +41,6 @@ def index():
|
|||
|
||||
list_of_matches = get_matches(user_id)
|
||||
|
||||
#@TODO tu bi morali dodati še nek users object, da own_id pretvorimo v username
|
||||
#relevant userids, but might be uselessly duplicated
|
||||
user_ids = []
|
||||
for match in list_of_matches:
|
||||
|
@ -52,6 +52,6 @@ def index():
|
|||
|
||||
for id in user_ids:
|
||||
|
||||
names_by_ids[id] = users.get(id).username
|
||||
names_by_ids[id] = users.get(id).username
|
||||
|
||||
return render_template("matches.html", username=username, list_of_matches=list_of_matches, names_by_ids=names_by_ids)
|
||||
return render_template("matches.html", username=username, list_of_matches=list_of_matches, names_by_ids=names_by_ids, users=users)
|
||||
|
|
Loading…
Reference in New Issue