We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 942fb99 + 4051b54 commit fd854d1Copy full SHA for fd854d1
ellar_sql/pagination/decorator.py
@@ -4,6 +4,7 @@
4
import uuid
5
6
import ellar.common as ecm
7
+import ellar.core as ec
8
import sqlalchemy as sa
9
from ellar.common import set_metadata
10
from ellar.common.constants import EXTRA_ROUTE_ARGS_KEY, RESPONSE_OVERRIDE_KEY
@@ -107,7 +108,7 @@ def _get_route_function_wrapper(
107
108
# use unique_id to make the kwargs difficult to collide with any route function parameter
109
execution_context = ecm.params.ExtraEndpointArg(
110
name=f"context_{unique_id[:-6]}",
- annotation=ecm.Inject[ecm.IExecutionContext],
111
+ annotation=ecm.Inject[ec.ExecutionContext],
112
)
113
114
set_metadata(EXTRA_ROUTE_ARGS_KEY, [_paginate_args, execution_context])(
0 commit comments