mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2025-12-18 09:24:46 -06:00
Implement robust CSV export feature with 8 filter options: - Date range, user (admin), client, project, task - Billable status, entry source, tags search Features: - New /reports/export/form route with modern UI - Enhanced CSV output with task and timestamp columns - Dynamic task loading based on project selection - Smart filename generation with filter indicators - Permission enforcement and analytics tracking Files modified: - app/routes/reports.py (enhanced routes) - app/templates/reports/index.html (updated link) - tests/test_routes.py (added tests) Files created: - app/templates/reports/export_form.html - docs/features/CSV_EXPORT_ENHANCED.md
20 lines
573 B
Python
20 lines
573 B
Python
#!/usr/bin/env python3
|
|
"""Check if export routes are registered"""
|
|
from app import create_app
|
|
|
|
app = create_app()
|
|
|
|
print("\n=== Export Routes ===")
|
|
with app.app_context():
|
|
for rule in app.url_map.iter_rules():
|
|
if 'export' in str(rule):
|
|
print(f"✓ {rule}")
|
|
|
|
print("\n✅ Routes are registered!")
|
|
print("\nTo access the new feature:")
|
|
print("1. Restart your Flask app: python app.py")
|
|
print("2. Go to: http://localhost:5000/reports")
|
|
print("3. Click on: 'Export CSV' button")
|
|
print("4. Or visit directly: http://localhost:5000/reports/export/form")
|
|
|