Beispiel #1
0
		def mgmt_route():
			if 'm_email' in session:
				if request.method == 'PUT':
					return json.dumps(dbconn.viewRoute(request.get_json().get('r_id')), default = datetime_converter)
				else:
					return render_template('management/route.html', records = dbconn.viewRoute())
			return redirect(url_for('mgmt_login'))
Beispiel #2
0
		def booking():
			if 'u_email' in session:
				sch_record = dbconn.viewS()
				rst_records =dbconn.viewRoute()
				jty_records = dbconn.viewJetty()
				return render_template('booking.html',  records=rst_records,Sch_records=sch_record, j_records = jty_records )
			return redirect(url_for('login'))
Beispiel #3
0
		def schedules():
			route_record = dbconn.viewR()
			sch_record = dbconn.viewS()
			rst_records =dbconn.viewRoute()
			return render_template('schedules.html',  records=rst_records,Sch_records=sch_record,  Rou_records = route_record)
Beispiel #4
0
		def jettiesmm():
			route_record = dbconn.viewR()
			rst_records =dbconn.viewRoute()
			return render_template('mm/jetties.html', Rou_records = route_record, records=rst_records)
Beispiel #5
0
		def jetties():
			route_record = dbconn.viewR()
			sch_record = dbconn.viewS()
			rst_records =dbconn.viewRoute()
			return render_template('jetties.html', Rou_records = route_record,Sch_records=sch_record,  records=rst_records)