try fixing pagination

This commit is contained in:
Kenneth Kehl
2024-11-18 12:38:33 -08:00
parent e7abb06b91
commit 83a7df64cc

View File

@@ -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()
)