From dc375f1a8941c0b196aa5566bbacd970947693ec Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 29 Jul 2023 19:04:35 +0200 Subject: [PATCH] API assiduite: nip -> code_nip (oups) --- app/models/assiduites.py | 2 +- tests/api/test_api_assiduites.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/assiduites.py b/app/models/assiduites.py index 085387c45..86f4d94de 100644 --- a/app/models/assiduites.py +++ b/app/models/assiduites.py @@ -79,7 +79,7 @@ class Assiduite(db.Model): data = { "assiduite_id": self.id, "etudid": self.etudid, - "nip": self.etudiant.code_nip, + "code_nip": self.etudiant.code_nip, "moduleimpl_id": self.moduleimpl_id, "date_debut": self.date_debut, "date_fin": self.date_fin, diff --git a/tests/api/test_api_assiduites.py b/tests/api/test_api_assiduites.py index 4f92e55e2..cc0c3c5fe 100644 --- a/tests/api/test_api_assiduites.py +++ b/tests/api/test_api_assiduites.py @@ -24,7 +24,7 @@ MODULE = 1 ASSIDUITES_FIELDS = { "assiduite_id": int, "etudid": int, - "nip": str, + "code_nip": str, "moduleimpl_id": int, "date_debut": str, "date_fin": str,