Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -61,11 +61,7 @@ def index():
|
|
61 |
"""Main page with API documentation"""
|
62 |
return render_template('index.html')
|
63 |
|
64 |
-
|
65 |
-
def admin():
|
66 |
-
"""Admin dashboard to view all tickets"""
|
67 |
-
tickets = load_tickets()
|
68 |
-
return render_template('admin.html', tickets=tickets, total_tickets=len(tickets))
|
69 |
|
70 |
@app.route('/add_data/<email>/<phone>/<name>/<int:tickets>/<ticket_number>/<country>/<region>')
|
71 |
def add_ticket_data(email, phone, name, tickets, ticket_number, country, region):
|
|
|
61 |
"""Main page with API documentation"""
|
62 |
return render_template('index.html')
|
63 |
|
64 |
+
|
|
|
|
|
|
|
|
|
65 |
|
66 |
@app.route('/add_data/<email>/<phone>/<name>/<int:tickets>/<ticket_number>/<country>/<region>')
|
67 |
def add_ticket_data(email, phone, name, tickets, ticket_number, country, region):
|