leadguru-jobs 0.521.0__py3-none-any.whl → 0.523.0__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.
- {leadguru_jobs-0.521.0.dist-info → leadguru_jobs-0.523.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.521.0.dist-info → leadguru_jobs-0.523.0.dist-info}/RECORD +5 -5
- lgt_jobs/jobs/inbox_leads.py +2 -2
- {leadguru_jobs-0.521.0.dist-info → leadguru_jobs-0.523.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.521.0.dist-info → leadguru_jobs-0.523.0.dist-info}/top_level.txt +0 -0
@@ -14,7 +14,7 @@ lgt_jobs/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
lgt_jobs/jobs/analytics.py,sha256=IIsWt4A1qUw3w-S-8W16uKY1FRVWfXXA41_mu4uCNiM,979
|
15
15
|
lgt_jobs/jobs/bot_stats_update.py,sha256=zCSiX3olnipZaqUyC81TvvHvIcM1xEvsepj0ai03VoE,7397
|
16
16
|
lgt_jobs/jobs/chat_history.py,sha256=kP9s_Zprwg1dAtSma5U_YcfhdkD4IAmZso30n-W4JlY,6302
|
17
|
-
lgt_jobs/jobs/inbox_leads.py,sha256=
|
17
|
+
lgt_jobs/jobs/inbox_leads.py,sha256=EYxdQPseNBY5ON7BK3LpnXDCgQpzHTPLRJCZmZiAAHA,5582
|
18
18
|
lgt_jobs/jobs/mass_message.py,sha256=1mFcBlL2MhzLbj5yrd_NyJc7TXDWCcROAzGDnr0miMU,2035
|
19
19
|
lgt_jobs/jobs/send_code.py,sha256=dIlLPkG3GgGKIEqGiElyzrtdrnJNTL1Ak2V0xnE-WIQ,824
|
20
20
|
lgt_jobs/jobs/send_slack_message.py,sha256=WdXXh7QpjJKSvDU93YT9QKzoGRNBpPCJgiIxPs5gp1s,2782
|
@@ -47,7 +47,7 @@ lgt_jobs/lgt_data/mongo_repository.py,sha256=h3xA2AvqHaiQfl4vg88SdOKBczJ0P6bpkZY
|
|
47
47
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
48
|
lgt_jobs/services/web_client.py,sha256=GLWsJkIC8rv6xLFaLwcMm4EwBlVDu0njORwkZqBJaE4,2086
|
49
49
|
lgt_jobs/templates/new_message.html,sha256=BD_E90akmQ1Wf07wtZAjeK_7DUKRmja5HFHVo_AKI24,6994
|
50
|
-
leadguru_jobs-0.
|
51
|
-
leadguru_jobs-0.
|
52
|
-
leadguru_jobs-0.
|
53
|
-
leadguru_jobs-0.
|
50
|
+
leadguru_jobs-0.523.0.dist-info/METADATA,sha256=O3D0yRm6V4v2h7prK1yuMBQpG5kQC6yxrDrz9AvbA0k,1319
|
51
|
+
leadguru_jobs-0.523.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
52
|
+
leadguru_jobs-0.523.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
53
|
+
leadguru_jobs-0.523.0.dist-info/RECORD,,
|
lgt_jobs/jobs/inbox_leads.py
CHANGED
@@ -78,6 +78,7 @@ class InboxLeadsJob(BaseBackgroundJob, ABC):
|
|
78
78
|
log.info(f'[InboxLeadsJob]: Count of messages: {len(messages)} with {sender_id}')
|
79
79
|
if messages:
|
80
80
|
user_contact = UserContactsRepository().find_one(user.id, sender_id=sender_id)
|
81
|
+
log.info(f"[InboxLeadsJob]: user contact exists: {str(user.id)}:{sender_id}")
|
81
82
|
if not user_contact:
|
82
83
|
people = SlackContactUserRepository().find_one(sender_id)
|
83
84
|
if not people:
|
@@ -88,6 +89,7 @@ class InboxLeadsJob(BaseBackgroundJob, ABC):
|
|
88
89
|
source_id=dedicated_bot.source.source_id,
|
89
90
|
email=user.email,
|
90
91
|
message=messages[0].get("text"))
|
92
|
+
log.info(f"[InboxLeadsJob]: Save lead for user: {user.email}")
|
91
93
|
if save_lead_response.status_code == 200:
|
92
94
|
lead = UserLeadModel.from_dic(save_lead_response.json())
|
93
95
|
self.v3_client.update_user_lead(lead.message.message_id, user.email,
|
@@ -106,5 +108,3 @@ class InboxLeadsJob(BaseBackgroundJob, ABC):
|
|
106
108
|
"source.source_id": dedicated_bot.source.source_id},
|
107
109
|
{"$set": member_info.to_dic()}, upsert=True)
|
108
110
|
return SlackContactUserRepository().find_one(member_info.sender_id)
|
109
|
-
|
110
|
-
InboxLeadsJob().exec(InboxLeadsJobData())
|
File without changes
|
File without changes
|