From f5f08aeee0950effb55f98c2f5fbb5420ebad0d8 Mon Sep 17 00:00:00 2001 From: ma1co Date: Sat, 28 Jan 2017 14:02:34 +0000 Subject: [PATCH] Market client: Return date of last app update --- pmca/marketclient/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmca/marketclient/__init__.py b/pmca/marketclient/__init__.py index dac24e0..2fbbf1c 100644 --- a/pmca/marketclient/__init__.py +++ b/pmca/marketclient/__init__.py @@ -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 @@ -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