def get_service(): if session["logged"] == True: all_services = Services.find() return render_template('services.html', Services=all_services) else: return redirect('/login')
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")
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)
def gender(g): services = Services.find({"gender": g}) return render_template("all_service.html", all_persons=services)