leadguru-jobs 0.625.0__py3-none-any.whl → 0.627.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.625.0.dist-info → leadguru_jobs-0.627.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.625.0.dist-info → leadguru_jobs-0.627.0.dist-info}/RECORD +7 -7
- lgt_jobs/jobs/inbox_leads.py +1 -2
- lgt_jobs/lgt_data/engine.py +1 -1
- lgt_jobs/lgt_data/mongo_repository.py +3 -3
- {leadguru_jobs-0.625.0.dist-info → leadguru_jobs-0.627.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.625.0.dist-info → leadguru_jobs-0.627.0.dist-info}/top_level.txt +0 -0
@@ -15,7 +15,7 @@ lgt_jobs/jobs/analytics.py,sha256=IIsWt4A1qUw3w-S-8W16uKY1FRVWfXXA41_mu4uCNiM,97
|
|
15
15
|
lgt_jobs/jobs/bot_stats_update.py,sha256=JRPPyqFvGHWuH_NQJNzIDy3DC0Joz14goNExqp-YUrw,8683
|
16
16
|
lgt_jobs/jobs/chat_history.py,sha256=pwLGZyPS8N3h2eeoIIWGMwnzskPGFkPO3YVIY0KjQro,5245
|
17
17
|
lgt_jobs/jobs/connect_sources.py,sha256=_eA86KnS3AC6YCI1xk7VCV7lFmPRxta-wUStfdmajQU,4790
|
18
|
-
lgt_jobs/jobs/inbox_leads.py,sha256=
|
18
|
+
lgt_jobs/jobs/inbox_leads.py,sha256=3w1ysXEcy7RSfhDu_BEOTe8R87plOSdpW_dtQZCFWh0,4500
|
19
19
|
lgt_jobs/jobs/load_slack_people.py,sha256=az3Pl8_0nUXizShpCksH6XMHFALLkta4QpMr_MkM9Io,3199
|
20
20
|
lgt_jobs/jobs/mass_message.py,sha256=1mFcBlL2MhzLbj5yrd_NyJc7TXDWCcROAzGDnr0miMU,2035
|
21
21
|
lgt_jobs/jobs/send_code.py,sha256=dIlLPkG3GgGKIEqGiElyzrtdrnJNTL1Ak2V0xnE-WIQ,824
|
@@ -39,17 +39,17 @@ lgt_jobs/lgt_common/slack_client/slack_client.py,sha256=SR3YjJCJ-_8BPu29sFtF0ULi
|
|
39
39
|
lgt_jobs/lgt_common/slack_client/web_client.py,sha256=WCu8mqYhauuxp9iDAMsjocchKD78iWdcnbu7Ozdyzq8,3448
|
40
40
|
lgt_jobs/lgt_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
41
|
lgt_jobs/lgt_data/analytics.py,sha256=yfrFPXrBofzZqUNn479JkrbZXDa2ljgk-Le0YrQ9rew,21690
|
42
|
-
lgt_jobs/lgt_data/engine.py,sha256=
|
42
|
+
lgt_jobs/lgt_data/engine.py,sha256=GY8FOl3dl7euKjQRML_H3ophaSTgfQ8ICMRv1NpE2oE,7745
|
43
43
|
lgt_jobs/lgt_data/enums.py,sha256=3IV06umcBLXMCWnXUO66fyPM8IVwfCVbiSCjcwYMqCY,2238
|
44
44
|
lgt_jobs/lgt_data/helpers.py,sha256=S_1P7pnx14dllmen-TzjA9pkKWQr39x8-v6iv7FUYnQ,423
|
45
45
|
lgt_jobs/lgt_data/model.py,sha256=S9HhixC1KuU65Km15Jde-IVzVxVpZ655_JzhI3bKVFI,34513
|
46
|
-
lgt_jobs/lgt_data/mongo_repository.py,sha256=
|
46
|
+
lgt_jobs/lgt_data/mongo_repository.py,sha256=OVg-sVFTOpsucAbFd9BBYbBhsYtXMupY58nKbb_o-xo,46964
|
47
47
|
lgt_jobs/lgt_data/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
48
|
lgt_jobs/lgt_data/models/message_request.py,sha256=3m_2uSqnLUHrQbhTEKednoC0KuxAC5o2-LwONUAHCC8,367
|
49
49
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
50
50
|
lgt_jobs/services/web_client.py,sha256=oMyWJxwGeIe3f40fPT7xcisjDg3BhA3Ipf8dr1jVT-Y,1549
|
51
51
|
lgt_jobs/templates/new_message.html,sha256=dZl8UmdAOOMq4nidvAgMFroSrTV7Pw0RWt2yLp_2idg,6989
|
52
|
-
leadguru_jobs-0.
|
53
|
-
leadguru_jobs-0.
|
54
|
-
leadguru_jobs-0.
|
55
|
-
leadguru_jobs-0.
|
52
|
+
leadguru_jobs-0.627.0.dist-info/METADATA,sha256=8yttXoCwgY8VCPcV87vj_pzV8XwTOnMZUUHuVGh_9tc,1319
|
53
|
+
leadguru_jobs-0.627.0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
54
|
+
leadguru_jobs-0.627.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
55
|
+
leadguru_jobs-0.627.0.dist-info/RECORD,,
|
lgt_jobs/jobs/inbox_leads.py
CHANGED
@@ -75,7 +75,6 @@ class InboxLeadsJob(BaseBackgroundJob, ABC):
|
|
75
75
|
log.info(f'[InboxLeadsJob]: Count of messages: {len(messages)} with {sender_id}')
|
76
76
|
if messages:
|
77
77
|
user_contact = UserContactsRepository().find_one(user.id, sender_id=sender_id)
|
78
|
-
log.info(f"[InboxLeadsJob]: user contact exists: {str(user.id)}:{sender_id}")
|
79
78
|
if not user_contact:
|
80
79
|
people = SlackContactUserRepository().find_one(sender_id)
|
81
80
|
if not people:
|
@@ -84,7 +83,7 @@ class InboxLeadsJob(BaseBackgroundJob, ABC):
|
|
84
83
|
|
85
84
|
log.info(f"[InboxLeadsJob]: New message request from {sender_id} for user: {user.email}")
|
86
85
|
message_request = MessageRequest.from_slack_response(dedicated_bot, messages[0], sender_id)
|
87
|
-
MessageRequestsRepository().insert(message_request
|
86
|
+
MessageRequestsRepository().insert(message_request)
|
88
87
|
|
89
88
|
@staticmethod
|
90
89
|
def create_people(slack_profile: dict, dedicated_bot: DedicatedBotModel):
|
lgt_jobs/lgt_data/engine.py
CHANGED
@@ -5,7 +5,7 @@ from datetime import datetime, UTC
|
|
5
5
|
from bson import ObjectId
|
6
6
|
from mongoengine import connect, Document, DateTimeField, StringField, IntField, ObjectIdField, ListField
|
7
7
|
from typing import Dict, Tuple, Optional
|
8
|
-
from lgt_jobs.lgt_data.
|
8
|
+
from lgt_jobs.lgt_data.mongo_repository import to_object_id
|
9
9
|
|
10
10
|
connect(host=os.environ.get('MONGO_CONNECTION_STRING', 'mongodb://127.0.0.1:27017/'), db="lgt_admin", alias="lgt_admin")
|
11
11
|
|
@@ -10,7 +10,7 @@ from lgt_jobs.lgt_data.model import (LeadModel, BaseModel, UserModel, UserResetP
|
|
10
10
|
DedicatedBotModel, SlackMemberInformation, UserTemplateModel,
|
11
11
|
ExtendedUserLeadModel, UserLeadModel, ExtendedLeadModel, UserContact, ChatMessage,
|
12
12
|
GroupedMessagesModel, UserVerificationModel, UsersPage, Subscription,
|
13
|
-
ScheduledMessage)
|
13
|
+
ScheduledMessage, DictionaryModel)
|
14
14
|
from datetime import datetime, UTC, timedelta
|
15
15
|
from collections import OrderedDict
|
16
16
|
|
@@ -38,10 +38,10 @@ class BaseMongoRepository:
|
|
38
38
|
insert_items = [item.to_dic() for item in items]
|
39
39
|
self.collection().insert_many(insert_items)
|
40
40
|
|
41
|
-
def insert(self, item
|
41
|
+
def insert(self, item):
|
42
42
|
return self.collection().insert_one(item.to_dic())
|
43
43
|
|
44
|
-
def add(self, item
|
44
|
+
def add(self, item):
|
45
45
|
return self.insert(item)
|
46
46
|
|
47
47
|
def delete(self, id):
|
File without changes
|
File without changes
|