Skip to content
Extraits de code Groupes Projets
Valider 85aff97d rédigé par jordan's avatar jordan
Parcourir les fichiers

[fix] key in dict is string, not int

parent 122703f8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -330,7 +330,7 @@ class ScopCotisationExo(models.Model): ...@@ -330,7 +330,7 @@ class ScopCotisationExo(models.Model):
""" """
quarters = {} quarters = {}
if self.year_exo_start == self.year_exo_end: if self.year_exo_start == self.year_exo_end:
quarters[self.year_exo_start] = range(self.quarter_exo_start, self.quarter_exo_end + 1) quarters[str(self.year_exo_start)] = range(self.quarter_exo_start, self.quarter_exo_end + 1)
else: else:
for year in range(self.year_exo_start, self.year_exo_end + 1): for year in range(self.year_exo_start, self.year_exo_end + 1):
if year == self.year_exo_start: if year == self.year_exo_start:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter