mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 08:16:19 -04:00
merge from main and reformat
This commit is contained in:
@@ -35,8 +35,9 @@ def get_model_api_keys(service_id, id=None):
|
||||
seven_days_ago = datetime.utcnow() - timedelta(days=7)
|
||||
return ApiKey.query.filter(
|
||||
or_(
|
||||
ApiKey.expiry_date == None, func.date(ApiKey.expiry_date) > seven_days_ago
|
||||
), # noqa
|
||||
ApiKey.expiry_date == None, # noqa
|
||||
func.date(ApiKey.expiry_date) > seven_days_ago, # noqa
|
||||
),
|
||||
ApiKey.service_id == service_id,
|
||||
).all()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user