mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
try fixing pagination
This commit is contained in:
@@ -14,8 +14,9 @@ from app.models import ApiKey
|
|||||||
def create_service_authorization_header(service_id, key_type=KeyType.NORMAL):
|
def create_service_authorization_header(service_id, key_type=KeyType.NORMAL):
|
||||||
client_id = str(service_id)
|
client_id = str(service_id)
|
||||||
secrets = (
|
secrets = (
|
||||||
db.session.execute(select(ApiKey)
|
db.session.execute(
|
||||||
.filter_by(service_id=service_id, key_type=key_type))
|
select(ApiKey).filter_by(service_id=service_id, key_type=key_type)
|
||||||
|
)
|
||||||
.scalars()
|
.scalars()
|
||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user