Skip to content

Commit

Permalink
fix unexpected argument object_type on legacy pagination function
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantoinedupre committed Dec 9, 2024
1 parent 94ee5c1 commit a5ea6c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/gn_module_monitoring/utils/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ def paginate_scope(


# TODO: voir pour réunifier le traitement spécial sur `data` avec la fonction originale ci-dessus
# FIXME : ajout de object_type car donné en param par la view
def paginate_scope_refacto(
query: Select, schema: Schema, limit: int, page: int, object_code=None
query: Select, schema: Schema, limit: int, page: int, object_code=None, object_type=None
) -> Response:
result = DB.paginate(query, page=page, per_page=limit, error_out=False)

Expand Down

0 comments on commit a5ea6c7

Please sign in to comment.