Commit f383477
committed
🐛 Fix repository pattern compliance - remove db.session usage
Fixed CSV import service to follow repository pattern properly.
Changes:
- Removed direct db.session usage in csv_import_service.py
- Now gets session from existing repository.session
- Maintains repository pattern compliance
- All database operations go through repositories
This fixes the service_model_import_violations test.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 61fdf21 commit f383477
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
601 | 603 | | |
| 604 | + | |
602 | 605 | | |
603 | 606 | | |
604 | | - | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
605 | 610 | | |
606 | 611 | | |
607 | | - | |
608 | | - | |
609 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
610 | 616 | | |
611 | 617 | | |
612 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
613 | 621 | | |
614 | 622 | | |
615 | 623 | | |
| |||
0 commit comments