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'])