Skip to content

Commit

Permalink
fixed error in fetch_likes method
Browse files Browse the repository at this point in the history
  • Loading branch information
ramusus committed Oct 2, 2013
1 parent 0ba54ae commit 1aa4d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vkontakte_wall/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = (0, 3, 16)
VERSION = (0, 3, 17)
__version__ = '.'.join(map(str, VERSION))
2 changes: 1 addition & 1 deletion vkontakte_wall/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def fetch_likes(self, offset=0, *args, **kwargs):
log.debug('Fetching likes of %s "%s" of owner "%s", offset %d' % (self._meta.module_name, self.remote_id, self.wall_owner, offset))

ids = super(WallAbstractModel, self).fetch_likes(*args, **kwargs)
users = User.remote.fetch(ids=ids) if ids else []
users = User.remote.fetch(ids=ids) if ids else User.objects.none()
for user in users:
self.like_users.add(user)

Expand Down

0 comments on commit 1aa4d76

Please sign in to comment.