diff --git a/main.py b/main.py
index 3ef4407..fd187e8 100644
--- a/main.py
+++ b/main.py
@@ -40,12 +40,8 @@ def Release_Ticket(ticket, URL, HOST):
def Run_Report(ticket, URL, HOST, REPORT_FIELDS, ws, wb):
- report_filter = """
-
-
-
- """
-
+ report_filter = """ <?xml version="1.0"?> <PFWebFilter:UserFilter xmlns:PFWebFilter="http://www.pageflex.com/schemas/2004/Storefront/UserFilters/20040817" filterClass="Orders"> <PFWebFilter:Step publicFieldName="Balance Due" query="ExactUnequals" minValue="0.00" maxValue="" /> <PFWebFilter:Step publicFieldName="Order Status" query="ExactEquals" minValue="Completed" maxValue="" /> </PFWebFilter:UserFilter>
+"""
send = """
"""+ticket+"""
Orders
false
- "Order Status 'Completed'"
+ """+report_filter+""""
"""+REPORT_FIELDS+"""
"""
- print(send)
+ # print(send)
- headers = {'Host': HOST, 'Content-Type': 'application/soap+xml; charset=utf-8', 'Content-Length': 'length'}
+ headers = {'Host': HOST, 'Content-Type': 'application/soap+xml; charset=utf-8', 'Content-Length': 'length', 'SOAPAction': 'http://www.pageflex.com/XmlWebServices/2004/StorefrontAPI/20041111/GetReport'}
response = requests.post(url=URL, data=send, headers=headers).text
# print(response)
temp1 = response.split('')
temp2 = temp1[1].split('')
report = (temp2[0])
- # print(report)
+ print("working")
y = bs(report, "lxml")
results = []