Skip to content

Commit

Permalink
Market client: Return date of last app update
Browse files Browse the repository at this point in the history
  • Loading branch information
ma1co committed Jan 28, 2017
1 parent 2b9f775 commit f5f08ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmca/marketclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .. import xpd

MarketDevice = namedtuple('MarketDevice', 'deviceid, name, serial')
MarketApp = namedtuple('MarketApp', 'id, name, img, price')
MarketApp = namedtuple('MarketApp', 'id, name, img, price, date')

def download(portalid, deviceid, appid):
"""Downloads an app from the PMCA store
Expand Down Expand Up @@ -64,7 +64,7 @@ def getApps(devicename=None):
'localeid': constants.localeUs,
}).data)
for app in data['contents']:
yield MarketApp(app['app_id'], re.sub('\s+', ' ', app['app_name']), app['appimg_url'], None if app['app_price'] == 'Free' else app['app_price'])
yield MarketApp(app['app_id'], re.sub('\s+', ' ', app['app_name']), app['appimg_url'], None if app['app_price'] == 'Free' else app['app_price'], int(app['regist_date']))

def downloadXpd(portalid, deviceid, appid):
"""Fetches the xpd file for the given app
Expand Down

0 comments on commit f5f08ae

Please sign in to comment.