Commit 8fde320
committed
Feature: Add confidence scores to Reports export
Enhanced the Rapports d'Opérations tab with detailed confidence metrics:
Backend (app.py line 272):
- Added AVG(similarity) to attendance report SQL query
Frontend updates:
- dashboard.html: Added "Confiance" column header to report table
- dashboard.js generateReport(): Display confidence as percentage (e.g., "92.3%")
- dashboard.js exportReport(): Include avg_similarity in CSV export
Reports now show complete details:
✅ Bataillon (department)
✅ Compagnie (sub_department)
✅ Confiance score (avg_similarity as %)
✅ Statut d'autorisation (is_authorized)
Addresses user request for "confidence score for each entry" in reports.1 parent 75c4ab3 commit 8fde320
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| |||
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
591 | | - | |
| 592 | + | |
592 | 593 | | |
593 | 594 | | |
594 | 595 | | |
| |||
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | | - | |
| 625 | + | |
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
| |||
0 commit comments