Skip to content

Commit d0213fc

Browse files
committed
feat ✨: add is_final column in the catalogue api
1 parent 9d4ed3b commit d0213fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/api/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,8 @@ def get(self, request) -> JsonResponse:
731731
"filename": "<filename>",
732732
"download_count": <download_count>,
733733
"view_count": <view_count>,
734-
"cite_count": <cite_count>
734+
"cite_count": <cite_count>,
735+
"is_final": <is_final>
735736
},
736737
...
737738
]
@@ -838,8 +839,8 @@ def get(self, request) -> JsonResponse:
838839
"sitting_id": sitting.sitting_id,
839840
"date": sitting.date,
840841
"filename": sitting.filename,
842+
"is_final": sitting.is_final,
841843
# "has_dataset": sitting.has_dataset,
842-
# "is_final": sitting.is_final,
843844
}
844845

845846
cycle_map[term][session][meeting]["sitting_list"].append(sitting_data)

0 commit comments

Comments
 (0)