def get_service():
    if session["logged"] == True:

        all_services = Services.find()
        return render_template('services.html', Services=all_services)
    else:
        return redirect('/login')
Пример #2
0
def allservice():
    if "logged" in session:
        if session["logged"] == True:
            persons = Services.find()
            return render_template("all-service.html", all_persons=persons)
        else:
            return redirect("/login")
    else:
        return redirect("/login")
Пример #3
0
def all_service():
    if "logged" in session:
        if session["logged"] == True:
            persons = Services.find()
            return render_template('all-services.html', all_persons=persons)
        else:
            return redirect('/login')
    else:
        return redirect('/login')
def male(gender):
    male_services = Services.find({"gender": gender})
    return render_template('services.html', Services=male_services)
Пример #5
0
def gender(g):
    services = Services.find({"gender": g})
    return render_template("all_service.html", all_persons=services)