Skip to content

Commit

Permalink
Fixed bad check for applications offer type
Browse files Browse the repository at this point in the history
  • Loading branch information
Domenico Iezzi committed Feb 1, 2018
1 parent 8c32121 commit a7898bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playmaker/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def download_selection(self, apps):
continue
print('Downloading %s' % docid)
try:
if details['offer'][0]['formattedAmount'] == 'Free':
if details.get('offer')[0].get('micros') == 0:
data_gen = self.service.download(docid, details['versionCode'])
else:
data_gen = self.service.delivery(docid, details['versionCode'])
Expand Down

0 comments on commit a7898bb

Please sign in to comment.