mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Limit provider history to 100 results
This stops the pages being slow to load and defers the need to add any pagination. Only the most recent data is likely to be relevant.
This commit is contained in:
@@ -36,6 +36,8 @@ def dao_get_provider_versions(provider_id):
|
||||
id=provider_id
|
||||
).order_by(
|
||||
desc(ProviderDetailsHistory.version)
|
||||
).limit(
|
||||
100 # limit results instead of adding pagination
|
||||
).all()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user