gopichandra commited on
Commit
d764bf9
·
verified ·
1 Parent(s): 9721b35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -82
app.py CHANGED
@@ -14,95 +14,24 @@ import kaleido # Ensure kaleido is imported
14
  # Attribute mappings: readable names to Salesforce API names
15
  ATTRIBUTE_MAPPING = {
16
  "Product name": "Productname__c",
17
- "Colour": "Colour__c",
18
- "Motortype": "Motortype__c",
19
- "Frequency": "Frequency__c",
20
- "Grossweight": "Grossweight__c",
21
- "Ratio": "Ratio__c",
22
- "MotorFrame": "Motorframe__c",
23
- "Model": "Model__c",
24
- "Speed": "Speed__c",
25
- "Quantity": "Quantity__c",
26
- "Voltage": "Voltage__c",
27
- "Material": "Material__c",
28
  "Type": "Type__c",
29
- "Horsepower": "Horsepower__c",
30
- "Consignee": "Consignee__c",
31
- "LOT": "LOT__c",
32
- "Stage": "Stage__c",
33
  "Outlet": "Outlet__c",
34
- "Serialnumber": "Serialnumber__c",
35
- "HeadSize": "Headsize__c",
36
- "Deliverysize": "Deliverysize__c",
37
- "Phase": "Phase__c",
38
- "Size": "Size__c",
39
- "MRP": "MRP__c",
40
- "Usebefore": "Usebefore__c",
41
- "Height": "Height__c",
42
- "MaximumDischarge Flow": "Maximumdischargeflow__c",
43
- "DischargeRange": "Dischargeflow__c",
44
- "Assembledby": "Manufacturer__c",
45
- "Manufacturedate": "Manufacturedate__c",
46
- "Companyname": "Companyname__c",
47
- "Customercarenumber": "Customercarenumber__c",
48
- "SellerAddress": "Selleraddress__c",
49
- "Selleremail": "Selleremail__c",
50
- "GSTIN": "GSTIN__c",
51
- "Totalamount": "Totalamount__c",
52
- "Paymentstatus": "Paymentstatus__c",
53
- "Paymentmethod": "Paymentstatus__c",
54
- "Invoicedate": "Manufacturedate__c",
55
- "Warranty": "Warranty__c",
56
- "Brand": "Brand__c",
57
- "Motorhorsepower": "Motorhorsepower__c",
58
- "Power": "Power__c",
59
- "Motorphase": "Motorphase__c",
60
- "Enginetype": "Enginetype__c",
61
- "Tankcapacity": "Tankcapacity__c",
62
- "Head": "Head__c",
63
- "Usage/Application": "Usage_Application__c",
64
- "Volts": "volts__c",
65
- "Hertz": "Hertz__c",
66
- "Frame": "frame__c",
67
- "Mounting": "Mounting__c",
68
- "Tollfreenumber": "Tollfreenumber__c",
69
- "Pipesize": "Pipesize__c",
70
- "Manufacturer": "Manufacturer__c",
71
- "Office": "Office__c",
72
- "SRnumber": "SRnumber__c",
73
- "TypeOfEndUse": "TypeOfEndUse__c",
74
- "Model Name": "Model_Name_Number__c",
75
- "coolingmethod": "coolingmethod__c"
76
  }
77
 
78
  # List of product names to match
79
  PRODUCT_NAMES = [
80
- "Centrifugal mono block pump", "SINGLE PHASE MOTOR STARTER", "EasyPact EZC 100",
81
- "Openwell Submersible Pumpset", "Electric Motor", "Self Priming Pump",
82
- "Control panel for single phase submersible pumps", "MOTOR", "Submersible pump set",
83
- "Fusion submersible pump set", "DCT", "Shock proof water proof", "CG COMMERCIAL MOTORS", "Fusion",
84
- "control panel for single phase submerisible pumps",
85
- "single phase digital starter dry run and timer panel", "5HP AV1 XL Kirloskar Pump",
86
- "Phase stainless steel submersible pump", "Submersible pump", "WB15X",
87
- "Vtype self priming pump", "SP SHINE DISC", "havells submersible pump",
88
- "Havells open well Submersible pump", "Bertolini pump CK3 90pp",
89
- "WPA 772 Water Pump Assy", "bertolini TTL triplex high pressure plunger pumps",
90
- "Generic plunger high pressure pump", "Apple Normal, Banana",
91
- "Cast Iron KSb centrifugal pump", "5.5kw Water Pump",
92
- "KSB reliable i line centrifuged pumps", "Apple Normal, Orange, Banana",
93
- "Positive API 6745 hydraulic diaphragm pump", "1/2 inch Fuel Hose Pipe", "Kirloskar Water Pump",
94
- "Rotodel motor pump", "PVC Electrical Insulation Materials",
95
- "Electric kirloskar domestic water pump", "Electrical Insulation Materials",
96
- "sellowell motor pump", "bhupathi submersible pump set",
97
- "Flowshine Submersible pump set", "Index submersible pump",
98
- "Wintoss Plastic Electric Switch Board", "Electric 18 watt ujagar cooler pump",
99
- "Generator Service", "LG WM FHT1207ZWL, LG REF GL-S292RSCY",
100
- "Water tank, Filters, Water Pump", "MS Control Submersible Panel",
101
- "Centrifugal Monoblock Pumps", "Electric Motor with Pump BodyBlue and White",
102
- "Various Repair and Maintenance Parts", "Earthmax Pump",
103
- "Water Tank, Filters, Water Pump", "Centrifugal Water Pump for Agriculture",
104
- "mono block pumps"
105
  ]
 
106
 
107
  # Salesforce credentials
108
  SALESFORCE_USERNAME = "venkatramana@sandbox.com"
 
14
  # Attribute mappings: readable names to Salesforce API names
15
  ATTRIBUTE_MAPPING = {
16
  "Product name": "Productname__c",
 
 
 
 
 
 
 
 
 
 
 
17
  "Type": "Type__c",
18
+ "model name" :"Model Name",
19
+ "Voltage":"Voltage__c",
 
 
20
  "Outlet": "Outlet__c",
21
+ "Stage":"Stage__c",
22
+ "H.p": "H_p__c",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
  # List of product names to match
26
  PRODUCT_NAMES = [
27
+ "CG COMMERCIAL MOTORS", "Fusion", "Agroking", "Openwell"
28
+ }
29
+
30
+ # List of model names to match
31
+ MODEL_NAMES = [
32
+ "V9", "V4", "V3", "V7", "V6"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  ]
34
+
35
 
36
  # Salesforce credentials
37
  SALESFORCE_USERNAME = "venkatramana@sandbox.com"