gopichandra commited on
Commit
532c0f2
Β·
verified Β·
1 Parent(s): 8232df3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -14
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import os
3
  from paddleocr import PaddleOCR
4
  from PIL import Image
@@ -235,17 +234,8 @@ def pull_data_from_salesforce():
235
  security_token=SALESFORCE_SECURITY_TOKEN
236
  )
237
 
238
- query = """
239
- SELECT Product_Name__c, Modal_Name__c, Current_Stocks__c
240
- FROM Inventory_Management__c
241
- LIMIT 100
242
- """
243
- query2 = """
244
- SELECT Model_Name__c, Current_Stock__c
245
- FROM Un_Billable__c
246
- LIMIT 100
247
- """
248
-
249
 
250
  records = response.get("records", [])
251
  if not records:
@@ -331,5 +321,4 @@ def app():
331
  ], ["πŸ“₯ OCR Processing", "πŸ“Š Salesforce Data Export"])
332
 
333
  if __name__ == "__main__":
334
- app().launch(share=True)
335
-
 
 
1
  import os
2
  from paddleocr import PaddleOCR
3
  from PIL import Image
 
234
  security_token=SALESFORCE_SECURITY_TOKEN
235
  )
236
 
237
+ query = "SELECT Product_Name__c, Modal_Name__c, Current_Stocks__c FROM Inventory_Management__c LIMIT 100"
238
+ response = sf.query_all(query)
 
 
 
 
 
 
 
 
 
239
 
240
  records = response.get("records", [])
241
  if not records:
 
321
  ], ["πŸ“₯ OCR Processing", "πŸ“Š Salesforce Data Export"])
322
 
323
  if __name__ == "__main__":
324
+ app().launch(share=True)