From 8023c29c0e517ca393614956b8f1d2fbe0d94720 Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 9 Apr 2016 08:58:24 +0200 Subject: [PATCH] server/search: fix case in result JSON --- server/szurubooru/api/user_api.py | 2 +- server/szurubooru/tests/api/test_user_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/szurubooru/api/user_api.py b/server/szurubooru/api/user_api.py index 1c053bf..a634d97 100644 --- a/server/szurubooru/api/user_api.py +++ b/server/szurubooru/api/user_api.py @@ -43,7 +43,7 @@ class UserListApi(BaseApi): return { 'query': query, 'page': page, - 'page_size': self._search_executor.page_size, + 'pageSize': self._search_executor.page_size, 'total': count, 'users': [_serialize_user(context.user, user) for user in user_list], } diff --git a/server/szurubooru/tests/api/test_user_api.py b/server/szurubooru/tests/api/test_user_api.py index 210a4bd..bd69df1 100644 --- a/server/szurubooru/tests/api/test_user_api.py +++ b/server/szurubooru/tests/api/test_user_api.py @@ -29,7 +29,7 @@ class TestRetrievingUsers(DatabaseTestCase): result = api_.get(self.context) self.assertEqual(result['query'], '') self.assertEqual(result['page'], 1) - self.assertEqual(result['page_size'], 100) + self.assertEqual(result['pageSize'], 100) self.assertEqual(result['total'], 2) self.assertEqual([u['name'] for u in result['users']], ['u1', 'u2'])