def home(): try: client = Person() if client.first_time_login(): return render_template('signin.html') if request.method == 'POST': return render_template("home.html", name=client.name, resume=client.resume, image=client.image_file, about=client.about, skills=client.skills, projects=client.projects, user=True) else: return render_template("home.html", name=client.name, resume=client.resume, image=client.image_file, about=client.about, skills=client.skills, projects=client.projects, user=True) except Exception as e: print(e) pass return render_template('signin.html')
def add_user(): if request.method == 'POST': try: name = request.form["name"] email = request.form["email"] password = request.form["password"] client = Person() if (client.first_time_login()): client.reset_user(name, email, password) return render_template('login.html') except: pass return render_template('singin.html')
def add_user(): if request.method == 'POST': try: name = request.form["name"] email = request.form["email"] password = request.form["password"] client = Person() td = TimeDate() if (client.first_time_login()): td.set_datetime() client.reset_user(name, email, password) return render_template('login.html') timeleft = td.get_lefttime() return render_template('signin.html', timeleft=timeleft) except: pass return render_template('signin.html')
def home(): try: client = Person() if client.first_time_login(): return render_template('signin.html') td = TimeDate() print(td.passtime()) if (td.passtime()): client.reset_all() message = Messages() message.reset_message() return render_template('signin.html') timeleft = td.get_lefttime() print(timeleft) if request.method == 'POST': return render_template("home.html", name=client.name, resume=client.resume, image=client.image_file, about=client.about, skills=client.skills, projects=client.projects, user=True, timeleft=timeleft) else: return render_template("home.html", name=client.name, resume=client.resume, image=client.image_file, about=client.about, skills=client.skills, projects=client.projects, user=True, timeleft=timeleft) except Exception as e: print(e) pass return render_template('signin.html')