leadguru-jobs 0.629.0__py3-none-any.whl → 0.631.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.629.0.dist-info → leadguru_jobs-0.631.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.629.0.dist-info → leadguru_jobs-0.631.0.dist-info}/RECORD +7 -7
- {leadguru_jobs-0.629.0.dist-info → leadguru_jobs-0.631.0.dist-info}/WHEEL +1 -1
- lgt_jobs/lgt_data/enums.py +1 -0
- lgt_jobs/lgt_data/model.py +5 -0
- lgt_jobs/lgt_data/models/message_request.py +6 -6
- {leadguru_jobs-0.629.0.dist-info → leadguru_jobs-0.631.0.dist-info}/top_level.txt +0 -0
@@ -40,16 +40,16 @@ lgt_jobs/lgt_common/slack_client/web_client.py,sha256=WCu8mqYhauuxp9iDAMsjocchKD
|
|
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
42
|
lgt_jobs/lgt_data/engine.py,sha256=GY8FOl3dl7euKjQRML_H3ophaSTgfQ8ICMRv1NpE2oE,7745
|
43
|
-
lgt_jobs/lgt_data/enums.py,sha256=
|
43
|
+
lgt_jobs/lgt_data/enums.py,sha256=27Gd_o5QVCrSUMIfL0DJ72xV77T9fK0kYrOaC78O0SU,2292
|
44
44
|
lgt_jobs/lgt_data/helpers.py,sha256=S_1P7pnx14dllmen-TzjA9pkKWQr39x8-v6iv7FUYnQ,423
|
45
|
-
lgt_jobs/lgt_data/model.py,sha256=
|
45
|
+
lgt_jobs/lgt_data/model.py,sha256=RTFXWRnjCpgpSCsyVBpBt_DccwLwPWQVaVLD2e6QQRk,34699
|
46
46
|
lgt_jobs/lgt_data/mongo_repository.py,sha256=RVnpPqsozpHN2rBzH73xQUgfqnXUTzb505RGLXZoT5c,47284
|
47
47
|
lgt_jobs/lgt_data/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
|
-
lgt_jobs/lgt_data/models/message_request.py,sha256=
|
48
|
+
lgt_jobs/lgt_data/models/message_request.py,sha256=3kzFkpinOvIeTu1ViZrhU__eHKeh-YJuZFv5ELkotpY,446
|
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.631.0.dist-info/METADATA,sha256=l96Ryuro3XGy5j-_52T6ZBYf9NbMfAVUL7tPkAU-XUA,1319
|
53
|
+
leadguru_jobs-0.631.0.dist-info/WHEEL,sha256=Rp8gFpivVLXx-k3U95ozHnQw8yDcPxmhOpn_Gx8d5nc,91
|
54
|
+
leadguru_jobs-0.631.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
55
|
+
leadguru_jobs-0.631.0.dist-info/RECORD,,
|
lgt_jobs/lgt_data/enums.py
CHANGED
lgt_jobs/lgt_data/model.py
CHANGED
@@ -274,6 +274,11 @@ class Notification(DictionaryModel):
|
|
274
274
|
|
275
275
|
now = datetime.now(UTC)
|
276
276
|
current_week_day = datetime.isoweekday(now)
|
277
|
+
|
278
|
+
if (self.type == NotificationType.UNREAD_FOR_FEW_MINUTES
|
279
|
+
and self.last_notification and (now.minute - self.minute <= self.last_notification.minute)):
|
280
|
+
return False
|
281
|
+
|
277
282
|
if self.type == NotificationType.ONCE_A_WEEK and current_week_day != self.day:
|
278
283
|
return False
|
279
284
|
|
@@ -1,14 +1,14 @@
|
|
1
|
-
from lgt_jobs.lgt_data.enums import SourceType
|
2
1
|
from lgt_jobs.lgt_data.model import ChatMessage, DedicatedBotModel
|
3
2
|
|
4
3
|
|
5
4
|
class MessageRequest(ChatMessage):
|
6
|
-
hidden: bool
|
7
|
-
|
5
|
+
hidden: bool
|
6
|
+
|
7
|
+
def __init__(self):
|
8
|
+
super().__init__()
|
9
|
+
self.hidden = False
|
8
10
|
|
9
11
|
@classmethod
|
10
12
|
def from_slack_response(cls, bot: DedicatedBotModel, message_data: dict, sender_id: str):
|
11
13
|
message = super().from_slack_response(bot, message_data, sender_id)
|
12
|
-
|
13
|
-
message_request.source_type = bot.source.source_type
|
14
|
-
return message_request
|
14
|
+
return MessageRequest.from_dic(message.to_dic())
|
File without changes
|