diff options
-rw-r--r-- | patchwork/views/xmlrpc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/patchwork/views/xmlrpc.py b/patchwork/views/xmlrpc.py index 890db75..e47019c 100644 --- a/patchwork/views/xmlrpc.py +++ b/patchwork/views/xmlrpc.py @@ -933,6 +933,9 @@ def check_list(filt=None): if max_count > 0: return list(map(check_to_dict, checks[:max_count])) + elif max_count < 0: + min_count = checks.count() + max_count + return list(map(check_to_dict, checks[min_count:])) else: return list(map(check_to_dict, checks)) except Check.DoesNotExist: |