Skip to content

Commit

Permalink
Fix missing has_fetched in init for galleries
Browse files Browse the repository at this point in the history
Both Gallery_album and Gallery_image was affected
  • Loading branch information
Damgaard committed Sep 29, 2013
1 parent 8ed23fd commit 42ae4cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyimgur/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,15 +1405,15 @@ def send_verification_email(self):
# alphabetically without errors.
class Gallery_album(Album, Gallery_item):
"""Gallery Albums are albums submitted to the gallery."""
def __init__(self, json_dict, imgur):
def __init__(self, json_dict, imgur, has_fetched=True):
self._INFO_URL = ("https://api.imgur.com/3/gallery/album/"
"{}".format(json_dict['id']))
super(Gallery_album, self).__init__(json_dict, imgur)
super(Gallery_album, self).__init__(json_dict, imgur, has_fetched)


class Gallery_image(Image, Gallery_item):
"""Gallery images are images submitted to the gallery."""
def __init__(self, json_dict, imgur):
def __init__(self, json_dict, imgur, has_fetched=True):
self._INFO_URL = ("http://api.imgur.com/3/gallery/image/"
"{}".format(json_dict['id']))
super(Gallery_image, self).__init__(json_dict, imgur)
super(Gallery_image, self).__init__(json_dict, imgur, has_fetched)

0 comments on commit 42ae4cd

Please sign in to comment.