diff --git a/bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py b/bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py index bab45cdfbba2ac6aa2014828926b3e6d0da724a9..1e7897d1822fd3287a8695b65b6e00d5e1b3dbd2 100644 --- a/bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py +++ b/bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py @@ -3,7 +3,7 @@ from DateTime import DateTime portal = context.getPortalObject() preference_tool = portal.portal_preferences -software_product_list = portal.portal_catalog(portal_type='Software Product', validation_state='validated') +software_product_list = portal.portal_catalog(portal_type='Software Product', validation_state='validated', sort_on='creation_date') appstore_data = [] logo_url_list = [] i = 0 @@ -31,8 +31,8 @@ for software_product in software_product_list: "application_image_type": 'image', "application_image_url": logo.getReference(), "application_toc_accept": 'true', - "application_published": 'some_date', - "application_submitted": 'other_date', + "application_published": web_section.getModificationDate().strftime("%m/%d/%Y"), + "application_submitted": web_section.getModificationDate().strftime("%m/%d/%Y"), "application_description": data["description"] if "description" in data else data["name"], "application_url": "%s://%s.%s/" % (preference_tool.getPreferredSystemAppstoreWildcardProtocol(), app_domain,