Commit 22892104 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapos_crm: fix resiliency report

parent e9895891
......@@ -4,6 +4,6 @@ if start_date is None:
start_date = ">=%s" % (DateTime()-45).strftime("%Y/%m/%d")
return len(context.portal_catalog(portal_type="Payment Transaction",
group_by="delivery.destination_section_uid",
group_by=['delivery.destination_section_uid'],
simulation_state=["stopped", "delivered"],
start_date=">=2017/05/01" ))
......@@ -5,7 +5,7 @@ kw = {}
kw["portal_type"] = "Hosting Subscription"
kw["validation_state"] = "validated"
#kw["url_string"] = ["%%/software/slaprunner/software.cfg", "%%/software/kvm/software.cfg"]
kw["select_list"] = "url_string, source_reference"
kw["select_list"] = ["url_string", "source_reference"]
def getIndex(hosting_subscription):
if "software/slaprunner/software.cfg" in hosting_subscription.url_string:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment