leadguru-jobs 0.659.0__py3-none-any.whl → 0.661.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.659.0.dist-info → leadguru_jobs-0.661.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.659.0.dist-info → leadguru_jobs-0.661.0.dist-info}/RECORD +6 -6
- lgt_jobs/lgt_data/models/notifications/notification.py +1 -1
- lgt_jobs/lgt_data/mongo_repository.py +5 -2
- {leadguru_jobs-0.659.0.dist-info → leadguru_jobs-0.661.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.659.0.dist-info → leadguru_jobs-0.661.0.dist-info}/top_level.txt +0 -0
@@ -42,7 +42,7 @@ lgt_jobs/lgt_data/engine.py,sha256=GY8FOl3dl7euKjQRML_H3ophaSTgfQ8ICMRv1NpE2oE,7
|
|
42
42
|
lgt_jobs/lgt_data/enums.py,sha256=27Gd_o5QVCrSUMIfL0DJ72xV77T9fK0kYrOaC78O0SU,2292
|
43
43
|
lgt_jobs/lgt_data/helpers.py,sha256=S_1P7pnx14dllmen-TzjA9pkKWQr39x8-v6iv7FUYnQ,423
|
44
44
|
lgt_jobs/lgt_data/model.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
|
-
lgt_jobs/lgt_data/mongo_repository.py,sha256=
|
45
|
+
lgt_jobs/lgt_data/mongo_repository.py,sha256=gi2CJDfckWsKdQLjgdJ9OTiefaZXw0Xs2cGgfhPJfXI,55792
|
46
46
|
lgt_jobs/lgt_data/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
lgt_jobs/lgt_data/models/base.py,sha256=YaiceCaaF45snOLx-bQoYJ1aTWrfgMQeHWjAaRnzGKE,592
|
48
48
|
lgt_jobs/lgt_data/models/boards/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -75,7 +75,7 @@ lgt_jobs/lgt_data/models/leads/extended_lead.py,sha256=ezFrKv-f5GBXr3QAM-V_qJQ-i
|
|
75
75
|
lgt_jobs/lgt_data/models/leads/lead.py,sha256=mTZh8YV06nX9OWYvv_X7rDdIperB-RPChrEuheeYMU0,1300
|
76
76
|
lgt_jobs/lgt_data/models/leads/message.py,sha256=7mXwYfSpmhY_zC8TfUdAZzxsPP-02bOqVjdkN4Vid5s,1533
|
77
77
|
lgt_jobs/lgt_data/models/notifications/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
78
|
-
lgt_jobs/lgt_data/models/notifications/notification.py,sha256=
|
78
|
+
lgt_jobs/lgt_data/models/notifications/notification.py,sha256=WyN6vm1_UazFYla9VH2bnpyYgzQG7uJPvM9V5gEIBwE,12853
|
79
79
|
lgt_jobs/lgt_data/models/notifications/notification_settings.py,sha256=VFddLvk2ROz4n50wYuZmqBDn7MssFwj-e9DbWweIVA4,2780
|
80
80
|
lgt_jobs/lgt_data/models/people/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
81
81
|
lgt_jobs/lgt_data/models/people/people.py,sha256=pm60uMVmNIxOGCBAtZWhmXSJOe0SJ4C1y_HurUq00oY,3420
|
@@ -103,7 +103,7 @@ lgt_jobs/lgt_data/repositories/post/posts.py,sha256=ZA19L-CYdxLhlapyMQtSJzP3QMUl
|
|
103
103
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
104
104
|
lgt_jobs/services/web_client.py,sha256=oMyWJxwGeIe3f40fPT7xcisjDg3BhA3Ipf8dr1jVT-Y,1549
|
105
105
|
lgt_jobs/templates/new_message.html,sha256=dZl8UmdAOOMq4nidvAgMFroSrTV7Pw0RWt2yLp_2idg,6989
|
106
|
-
leadguru_jobs-0.
|
107
|
-
leadguru_jobs-0.
|
108
|
-
leadguru_jobs-0.
|
109
|
-
leadguru_jobs-0.
|
106
|
+
leadguru_jobs-0.661.0.dist-info/METADATA,sha256=dCFazMohV_5vEy3zNG9QErGrHDddhj6Tn-VZUrxCgsM,1319
|
107
|
+
leadguru_jobs-0.661.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
108
|
+
leadguru_jobs-0.661.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
109
|
+
leadguru_jobs-0.661.0.dist-info/RECORD,,
|
@@ -136,7 +136,7 @@ class SourceDeactivationNotification(Notification):
|
|
136
136
|
case 2 | 3:
|
137
137
|
return f'{", ".join(names)} became inactive on Leadguru.'
|
138
138
|
case _:
|
139
|
-
return f'{", ".join(names)} and other became inactive on Leadguru.'
|
139
|
+
return f'{", ".join(names[:3])} and other became inactive on Leadguru.'
|
140
140
|
|
141
141
|
|
142
142
|
class BulkRepliesNotification(Notification):
|
@@ -82,7 +82,7 @@ class UserMongoRepository(BaseMongoRepository):
|
|
82
82
|
update_dict = {k: v for k, v in kwargs.items() if v is not None}
|
83
83
|
self.collection().update_one({'_id': to_object_id(_id)}, {'$set': update_dict})
|
84
84
|
|
85
|
-
def get_users(self, users_ids=None, include_inactive=False, **kwargs):
|
85
|
+
def get_users(self, users_ids=None, include_inactive=False, name=None, **kwargs):
|
86
86
|
pipeline = {}
|
87
87
|
|
88
88
|
subscription_expired = kwargs.get('subscription_expired')
|
@@ -129,6 +129,9 @@ class UserMongoRepository(BaseMongoRepository):
|
|
129
129
|
if users_ids is not None:
|
130
130
|
pipeline['_id'] = {'$in': [to_object_id(_id) for _id in users_ids]}
|
131
131
|
|
132
|
+
if name is not None:
|
133
|
+
pipeline['user_name'] = {"$regex": name, "$options": 'i'}
|
134
|
+
|
132
135
|
if not include_inactive:
|
133
136
|
pipeline['inactive'] = False
|
134
137
|
|
@@ -256,7 +259,7 @@ class UserLeadMongoRepository(BaseMongoRepository):
|
|
256
259
|
'case': {'$eq': ['$user.notification_settings.follow_ups.type',
|
257
260
|
'unread_for_few_minutes']},
|
258
261
|
'then': {
|
259
|
-
'$
|
262
|
+
'$dateAdd': {
|
260
263
|
'startDate': now,
|
261
264
|
'unit': 'minute',
|
262
265
|
'amount': '$user.notification_settings.follow_ups.minute'
|
File without changes
|
File without changes
|