mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
Merge pull request #3500 from alphagov/limit-provider-history
Limit provider history to 100 results
This commit is contained in:
@@ -36,6 +36,8 @@ def dao_get_provider_versions(provider_id):
|
|||||||
id=provider_id
|
id=provider_id
|
||||||
).order_by(
|
).order_by(
|
||||||
desc(ProviderDetailsHistory.version)
|
desc(ProviderDetailsHistory.version)
|
||||||
|
).limit(
|
||||||
|
100 # limit results instead of adding pagination
|
||||||
).all()
|
).all()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user