Skip to content
Snippets Groups Projects
Commit c16c5e52 authored by Rajesh, Anisha (PG/T - Comp Sci & Elec Eng)'s avatar Rajesh, Anisha (PG/T - Comp Sci & Elec Eng)
Browse files

homepage python file modified

parent 0c019563
No related branches found
No related tags found
2 merge requests!2Pushing the final code to main after testing in QA.,!1Merging the the code to QA for testing
<<<<<<< HEAD
from flask import Flask, render_template, jsonify , redirect
import pymysql
import os
......@@ -72,25 +71,3 @@ def cricket():
if __name__ == '__main__':
app.run(debug=True)
=======
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/confirmation/<int:booking_id>')
def confirmation(booking_id):
# In a real app, you'd fetch these details from a database based on the booking_id
booking_details = {
'activity': 'Tennis Court Rental',
'date': 'April 22, 2024',
'time': '10:00 AM to 12:00 PM',
'location': 'Surrey Central Sports Complex, Court #5',
'name': 'John Doe',
'total_cost': '$30.00',
'payment_status': 'Paid'
}
return render_template('confirmation.html', details=booking_details)
if __name__ == '__main__':
app.run(debug=True)
>>>>>>> ae8fb441f991aaba278d5c04cae37b5caef3c7dd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment