AIEmailAutomationUtility 0.0.35__py3-none-any.whl → 0.0.37__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- AIEmailAutomationUtility/Process_Category.py +17 -13
- {AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/METADATA +3 -3
- {AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/RECORD +6 -6
- {AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/WHEEL +1 -1
- {AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/LICENCE.txt +0 -0
- {AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/top_level.txt +0 -0
@@ -220,7 +220,7 @@ class Process_Category:
|
|
220
220
|
db_connection = sqlite3.connect('database/fetchprice.db')
|
221
221
|
for product in products:
|
222
222
|
item_no = product.get("item_no", "").strip()
|
223
|
-
make = product.get("make"
|
223
|
+
make = "" if not product.get("make") or str(product["make"]).lower() == "none" else str(product["make"]).strip()
|
224
224
|
rate = None
|
225
225
|
discount = "NA"
|
226
226
|
price_pickup_source = "NA"
|
@@ -396,18 +396,22 @@ class Process_Category:
|
|
396
396
|
csv_data_status = "Fail"
|
397
397
|
csv_data_response = f"-"
|
398
398
|
else:
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
399
|
+
val_mail_id = email_config.get('email')
|
400
|
+
val_mail_pass = email_config.get('password')
|
401
|
+
|
402
|
+
if val_mail_id != None and val_mail_pass != None:
|
403
|
+
action_taken = f"Saved the mail to the label: {LABEL}"
|
404
|
+
csv_data_status = "Success"
|
405
|
+
csv_data_response = f""
|
406
|
+
|
407
|
+
logger.log(f"Marking email as UNREAD. ")
|
408
|
+
# print(f"email_id: {email_id}, type: {type(email_id)}")
|
409
|
+
mail.store(email_id, '-FLAGS', '\\Seen')
|
410
|
+
mail.create(LABEL)
|
411
|
+
mail.copy(email_id, LABEL)
|
412
|
+
mail.store(email_id, '+FLAGS', '\\Deleted') # Mark for deletion
|
413
|
+
mail.expunge()
|
414
|
+
logger.log(f"Mail removed from inbox and added to '{LABEL}' label.")
|
411
415
|
|
412
416
|
current_timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
413
417
|
filename = f'{uid}{current_timestamp}'
|
{AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/METADATA
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: AIEmailAutomationUtility
|
3
|
-
Version: 0.0.
|
4
|
-
Summary:
|
3
|
+
Version: 0.0.37
|
4
|
+
Summary: Extract make from the products json received.
|
5
5
|
Author: Proteus Technology PVT. LTD.
|
6
6
|
Author-email: <apps@baseinformation.com>
|
7
7
|
Keywords: python,first package
|
@@ -13,4 +13,4 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
13
13
|
Classifier: Operating System :: Microsoft :: Windows
|
14
14
|
License-File: LICENCE.txt
|
15
15
|
|
16
|
-
|
16
|
+
Extract make from the products json received.
|
{AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/RECORD
RENAMED
@@ -4,12 +4,12 @@ AIEmailAutomationUtility/Email_DocumentUploader.py,sha256=BWNRt2X-E2HCogBaKDfl7c
|
|
4
4
|
AIEmailAutomationUtility/Email_Draft.py,sha256=TGLqV0yzXLIdBnRcEY3CgmcDJVgiP3LN1vLPXTBj5rY,8831
|
5
5
|
AIEmailAutomationUtility/Email_Read.py,sha256=_JwHTJZmxjuMPTbn90D9YStW7NSJd3t4R_cwUZ1tn20,31470
|
6
6
|
AIEmailAutomationUtility/Email_Upload_Document.py,sha256=3bdkxfDlwoeRp-46KPw2Gs1dqBhEIoA1yE5GCudpdV8,1320
|
7
|
-
AIEmailAutomationUtility/Process_Category.py,sha256=
|
7
|
+
AIEmailAutomationUtility/Process_Category.py,sha256=uq0hNrHrOJbqyq4XsUCYcPkRkpD4CJW3N6XIY8q5PJw,53887
|
8
8
|
AIEmailAutomationUtility/Save_Draft.py,sha256=yzLgFN14I_lXE6qL0I3tKNduvcnWdbsY9i2mKdTtio4,5348
|
9
9
|
AIEmailAutomationUtility/Save_Transaction.py,sha256=Gg1w6hhzHmEFjsuzYvkq-3-EsWReetjLHsYSv5YIGgM,3816
|
10
10
|
AIEmailAutomationUtility/__init__.py,sha256=Jad3IdPRsVMeLqEEh-FbCrc1lE2tzJO2DTG5Hgmxh5g,391
|
11
|
-
AIEmailAutomationUtility-0.0.
|
12
|
-
AIEmailAutomationUtility-0.0.
|
13
|
-
AIEmailAutomationUtility-0.0.
|
14
|
-
AIEmailAutomationUtility-0.0.
|
15
|
-
AIEmailAutomationUtility-0.0.
|
11
|
+
AIEmailAutomationUtility-0.0.37.dist-info/LICENCE.txt,sha256=2qX9IkEUBx0VJp1Vh9O2dsRwE-IpYId0lXDyn7OVsJ8,1073
|
12
|
+
AIEmailAutomationUtility-0.0.37.dist-info/METADATA,sha256=XeS542SXFOHGm8L0S36_Cb-DGBHlJUYoMJok3AWhw3E,591
|
13
|
+
AIEmailAutomationUtility-0.0.37.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
14
|
+
AIEmailAutomationUtility-0.0.37.dist-info/top_level.txt,sha256=3jTWrTUblVkaP7mpwY2UBSnrlfot5Ykpfsehyke-Uzw,25
|
15
|
+
AIEmailAutomationUtility-0.0.37.dist-info/RECORD,,
|
{AIEmailAutomationUtility-0.0.35.dist-info → AIEmailAutomationUtility-0.0.37.dist-info}/LICENCE.txt
RENAMED
File without changes
|
File without changes
|