Beispiel #1
0
def auth_view_by_id(account_id):
    account = User.query.get(account_id)
    # number_of_events = User.find_number_of_events_associated_with_specific_account(account_id)
    own_events = User.find_events_created_by_account(account_id)
    events_of_interest = User.find_events_associated_with_specific_account(
        account_id)

    return render_template("auth/single.html",
                           account=account,
                           form=AccountForm(),
                           number_of_events=0,
                           own_events=own_events,
                           events_of_interest=events_of_interest)