Open itsurgolu opened 2 years ago
Do as it is fill the details how i shown in my video while saying demo BECuz each links are linked with each other
On Mon, Dec 20, 2021, 3:19 PM Prathamesh Rathod @.***> wrote:
File "G:\DBMS-COVID-BED-SLOT-BOOKING-MINI-PROJECT-main\project\main.py", line 239, in addhospitalinfo
@app.route("/addhospitalinfo",methods=['POST','GET']) def addhospitalinfo(): email=current_user.email posts=Hospitaluser.query.filter_by(email=email).first() code=posts.hcode postsdata=Hospitaldata.query.filter_by(hcode=code).first()
if request.method=="POST": hcode=request.form.get('hcode') hname=request.form.get('hname')
AttributeError: 'NoneType' object has no attribute 'hcode'
— Reply to this email directly, view it on GitHub https://github.com/arkprocoder/DBMS-COVID-BED-SLOT-BOOKING-MINI-PROJECT/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVT2L3ZW5HDWXEOQGWZH5LUR33Z7ANCNFSM5KNIGNXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.*** com>
what should i do i am getting sme error
File "G:\DBMS-COVID-BED-SLOT-BOOKING-MINI-PROJECT-main\project\main.py", line 239, in addhospitalinfo
@app.route("/addhospitalinfo",methods=['POST','GET']) def addhospitalinfo(): email=current_user.email posts=Hospitaluser.query.filter_by(email=email).first() code=posts.hcode postsdata=Hospitaldata.query.filter_by(hcode=code).first()
AttributeError: 'NoneType' object has no attribute 'hcode'