mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -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):
|
||||
client_id = str(service_id)
|
||||
secrets = (
|
||||
db.session.execute(select(ApiKey)
|
||||
.filter_by(service_id=service_id, key_type=key_type))
|
||||
db.session.execute(
|
||||
select(ApiKey).filter_by(service_id=service_id, key_type=key_type)
|
||||
)
|
||||
.scalars()
|
||||
.all()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user