refactoring

This commit is contained in:
dahoud
2026-03-31 09:14:47 +00:00
parent 9bfffeeebe
commit 5383df6dcb
200 changed files with 11192 additions and 7063 deletions

View File

@@ -122,7 +122,7 @@ class OrganizationService {
/// Recherche avancée d'organisations
Future<List<OrganizationModel>> searchOrganizations({
String? nom,
TypeOrganization? type,
String? type,
StatutOrganization? statut,
String? ville,
String? region,
@@ -166,7 +166,7 @@ class OrganizationService {
/// Filtre les organisations par type
List<OrganizationModel> filterByType(
List<OrganizationModel> organizations,
TypeOrganization type,
String type,
) {
return organizations.where((org) => org.typeOrganisation == type).toList();
}
@@ -251,7 +251,7 @@ class OrganizationService {
// Statistiques par type
final parType = <String, int>{};
for (final org in organizations) {
final type = org.typeOrganisation.displayName;
final type = org.typeOrganisation;
parType[type] = (parType[type] ?? 0) + 1;
}