def stopRent(): user = User(current_user.get_id()) if not user.is_authenticated(): return '' sid = request.args.get("id") station = Station(sid) station.stopRent(user.id) return render_template("station.html", station=station, user=user)
def brokenBike(): user = User(current_user.get_id()) if not user.is_authenticated(): return '' sid = request.args.get("id1") bid = request.args.get("id2") station = Station(sid) station.brokenBike(bid) return render_template("station.html", station=station, user=user)
def rentVillo(): user = User(current_user.get_id()) if not user.is_authenticated(): return '' sid = request.args.get("id1") vid = request.args.get("id2") station = Station(sid) station.rentVillo(vid,user.id) return render_template("station.html", station=station, user=user)