Skip to content

Commit

Permalink
fix empty lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg committed Jun 11, 2013
1 parent 5c026c9 commit 1b98b61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyfb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# MA 02110-1301, USA.

__author__ = "Juan Manuel Garcia"
__version__ = "0.4.1"
__version__ = "0.4.2"
__license__ = 'GPL v3'

from pyfb import Pyfb, PyfbException
2 changes: 1 addition & 1 deletion pyfb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def get_list(self, id, path, object_name=None):
obj = self.get_one(path, object_name)
obj_list = self.factory.make_paginated_list(obj, object_name)

if not obj_list:
if obj_list == False:
obj_list = obj.get("data")

return obj_list
Expand Down
2 changes: 1 addition & 1 deletion pyfb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def make_objects_list(self, name, data):
def make_paginated_list(self, obj, object_name):

objs = getattr(obj, object_name, False)
if not objs:
if objs == False:
return False

objs_list = PaginatedList(objs, obj, object_name)
Expand Down

0 comments on commit 1b98b61

Please sign in to comment.