[extensions-web/deploy] ajax: limit extensions items count to 25
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/deploy] ajax: limit extensions items count to 25
- Date: Sat, 26 Nov 2016 11:37:57 +0000 (UTC)
commit fab5e5067c5ccf6f178f4065da147bef537f6549
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sat Nov 26 14:37:45 2016 +0300
ajax: limit extensions items count to 25
sweettooth/extensions/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 1543ace..5480758 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -199,7 +199,7 @@ def ajax_query_search_query(request, versions, n_per_page):
@ajax_view
def ajax_query_view(request):
try:
- n_per_page = int(request.GET['n_per_page'])
+ n_per_page = min(int(request.GET['n_per_page']), 25)
except (KeyError, ValueError), e:
n_per_page = 10
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]