From 35826c86318cb04b227d503ce604cd49ff9fe89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz> Date: Thu, 14 Apr 2016 14:06:06 +0200 Subject: [PATCH] Do not swallow zeroes in id and count, send them to server and let him behave accordingly --- warden3/warden_client/warden_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warden3/warden_client/warden_client.py b/warden3/warden_client/warden_client.py index b3814c2..f03c5f9 100644 --- a/warden3/warden_client/warden_client.py +++ b/warden3/warden_client/warden_client.py @@ -573,11 +573,11 @@ class Client(object): tag=None, notag=None, group=None, nogroup=None): - if not id: + if id is None: id = self._loadID(idstore) res = self.sendRequest( - "getEvents", id=id, count=count or self.get_events_limit, cat=cat, + "getEvents", id=id, count=self.get_events_limit if count is None else count, cat=cat, nocat=nocat, tag=tag, notag=notag, group=group, nogroup=nogroup) if res: -- GitLab