Skip to content

Commit

Permalink
fix: if code_nsf is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Dijoux committed Oct 30, 2023
1 parent f5d64db commit 6ef77cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/business_logic/formation/scrap/get_formation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def search_formations(query: str, limit: int, offset: int = None) -> SearchedFor

formated_formations = [
Formation(
int(formation["code_nsf"]),
int(formation["code_nsf"] or 0),
formation["sigle_type_formation"] or formation["libelle_type_formation"],
formation["libelle_formation_principal"],
formation["tutelle"],
Expand Down

0 comments on commit 6ef77cf

Please sign in to comment.