Beispiel #1
0
def users_index():

    if current_user.get_id() == None:
        accounts = User.find_all_users_with_user_photos()

        return render_template("users/index.html", accounts=accounts)

    else:
        account_id = current_user.get_id()
        accounts = User.find_all_users_with_user_photos_not_itself(account_id)

        return render_template("users/index.html", accounts=accounts)