From b0ebdf2fb922199a58675161e840b9e3482f32bc Mon Sep 17 00:00:00 2001 From: Jean-Marie PLACE Date: Tue, 2 Aug 2022 16:32:31 +0200 Subject: [PATCH] replace ["partition_name"] by .partition_name --- app/api/partitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/partitions.py b/app/api/partitions.py index 1dac1b8b5..25252df31 100644 --- a/app/api/partitions.py +++ b/app/api/partitions.py @@ -419,7 +419,7 @@ def formsemestre_order_partitions(formsemestre_id: int): [ partition.to_dict() for partition in formsemestre.partitions.order_by(Partition.numero) - if partition["partition_name"] is not None + if partition.partition_name is not None ] )