diff sat_pubsub/pgsql_storage.py @ 297:4115999d85e9

fixes behavior when maxItems is 0
author souliane <souliane@mailoo.org>
date Thu, 10 Sep 2015 15:03:12 +0200
parents df1edebb0466
children 05c875a13a62
line wrap: on
line diff
--- a/sat_pubsub/pgsql_storage.py	Thu Sep 10 15:02:03 2015 +0200
+++ b/sat_pubsub/pgsql_storage.py	Thu Sep 10 15:03:12 2015 +0200
@@ -747,7 +747,7 @@
 
         query.append("ORDER BY date %s" % order)
 
-        if maxItems:
+        if maxItems is not None:
             query.append("LIMIT %s")
             args.append(maxItems)