leadguru-jobs 0.719.0__py3-none-any.whl → 0.721.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.719.0.dist-info → leadguru_jobs-0.721.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.719.0.dist-info → leadguru_jobs-0.721.0.dist-info}/RECORD +5 -5
- {leadguru_jobs-0.719.0.dist-info → leadguru_jobs-0.721.0.dist-info}/WHEEL +1 -1
- lgt_jobs/lgt_data/models/notifications/notification.py +5 -3
- {leadguru_jobs-0.719.0.dist-info → leadguru_jobs-0.721.0.dist-info}/top_level.txt +0 -0
@@ -78,7 +78,7 @@ lgt_jobs/lgt_data/models/leads/extended_lead.py,sha256=ezFrKv-f5GBXr3QAM-V_qJQ-i
|
|
78
78
|
lgt_jobs/lgt_data/models/leads/lead.py,sha256=mTZh8YV06nX9OWYvv_X7rDdIperB-RPChrEuheeYMU0,1300
|
79
79
|
lgt_jobs/lgt_data/models/leads/message.py,sha256=7mXwYfSpmhY_zC8TfUdAZzxsPP-02bOqVjdkN4Vid5s,1533
|
80
80
|
lgt_jobs/lgt_data/models/notifications/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
81
|
-
lgt_jobs/lgt_data/models/notifications/notification.py,sha256=
|
81
|
+
lgt_jobs/lgt_data/models/notifications/notification.py,sha256=l6pFIwVyURSvnvgncDEvvWS7anGi31n8vMkSti6fqPI,25365
|
82
82
|
lgt_jobs/lgt_data/models/notifications/notification_settings.py,sha256=2GS2mNQkgVUqY0WgOzC6-IZDp77FeZvUeutfJyHdvMQ,2870
|
83
83
|
lgt_jobs/lgt_data/models/people/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
84
84
|
lgt_jobs/lgt_data/models/people/people.py,sha256=pm60uMVmNIxOGCBAtZWhmXSJOe0SJ4C1y_HurUq00oY,3420
|
@@ -108,7 +108,7 @@ lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
108
108
|
lgt_jobs/services/k8_manager.py,sha256=bXpka9psIQ5UJ6QG_e4xolmE_3gtmNrzzZeL03bJ62I,995
|
109
109
|
lgt_jobs/services/web_client.py,sha256=oMyWJxwGeIe3f40fPT7xcisjDg3BhA3Ipf8dr1jVT-Y,1549
|
110
110
|
lgt_jobs/templates/new_message.html,sha256=dZl8UmdAOOMq4nidvAgMFroSrTV7Pw0RWt2yLp_2idg,6989
|
111
|
-
leadguru_jobs-0.
|
112
|
-
leadguru_jobs-0.
|
113
|
-
leadguru_jobs-0.
|
114
|
-
leadguru_jobs-0.
|
111
|
+
leadguru_jobs-0.721.0.dist-info/METADATA,sha256=nGHsB-pbiISyrU12_Nj9Uc0KQmL3xlQnK8dlIPQ5uvY,1399
|
112
|
+
leadguru_jobs-0.721.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
113
|
+
leadguru_jobs-0.721.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
114
|
+
leadguru_jobs-0.721.0.dist-info/RECORD,,
|
@@ -147,7 +147,8 @@ class IncomingMessageNotification(Notification):
|
|
147
147
|
for user_id in user_ids[:3]:
|
148
148
|
user = [user for user in users if user_id == user['sender_id']][0]
|
149
149
|
photo = user.get('images', {}).get('image_72', '{{ IMAGE_PERSON.src }}')
|
150
|
-
|
150
|
+
name = user['real_name'] if user.get('real_name') else user.get('display_name', '')
|
151
|
+
item = self.name_html_item.replace('$$USER_NAME$$', name)
|
151
152
|
item = item.replace('$$USER_IMAGE$$', photo)
|
152
153
|
title += item
|
153
154
|
|
@@ -249,7 +250,8 @@ class InboxNotification(Notification):
|
|
249
250
|
for user_id in user_ids[:3]:
|
250
251
|
user = [user for user in users if user_id == user['sender_id']][0]
|
251
252
|
photo = user.get('images', {}).get('image_72', '{{ IMAGE_PERSON.src }}')
|
252
|
-
|
253
|
+
name = user['real_name'] if user.get('real_name') else user.get('display_name', '')
|
254
|
+
item = self.name_html_item.replace('$$USER_NAME$$', name)
|
253
255
|
item = item.replace('$$USER_IMAGE$$', photo)
|
254
256
|
title += item
|
255
257
|
|
@@ -258,7 +260,7 @@ class InboxNotification(Notification):
|
|
258
260
|
def create_new_requests_list(self, requests: list):
|
259
261
|
new_requests = ""
|
260
262
|
for request in requests[:3]:
|
261
|
-
name = request['user']['real_name']
|
263
|
+
name = request['user']['real_name'] if request['user'].get('real_name') else request['user'].get('display_name', '')
|
262
264
|
photo = request['user'].get('images', {}).get('image_72', '{{ IMAGE_PERSON.src }}')
|
263
265
|
item = self.new_request_html_item.replace('$$USER_NAME$$', name)
|
264
266
|
item = item.replace('$$USER_IMAGE$$', photo)
|
File without changes
|