leadguru-jobs 0.615.0__py3-none-any.whl → 0.616.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: leadguru_jobs
3
- Version: 0.615.0
3
+ Version: 0.616.0
4
4
  Summary: LGT jobs builds
5
5
  Author-email: developer@leadguru.co
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -43,12 +43,12 @@ lgt_jobs/lgt_data/analytics.py,sha256=fiN88zcIxs_bRMmXL7ftp4FvBeJ5I7QBPE4tbwKJ39
43
43
  lgt_jobs/lgt_data/engine.py,sha256=Rsbz-CApAo_TVDssdjBkv8v_fVOZm_Uh1S6W4fnaEWo,7728
44
44
  lgt_jobs/lgt_data/enums.py,sha256=jXrOcpy4awVuiZ51nSncfFospg0KsBZ4UwL650_VZVg,2259
45
45
  lgt_jobs/lgt_data/helpers.py,sha256=NDa-V5EYaJfkGoWsmQSwSe6N_jxNxs8tHRQzW1iST6k,480
46
- lgt_jobs/lgt_data/model.py,sha256=91A1X4Ik85rEb41JULaAE6vNr8FE81bAtPzuRHRoFMA,33026
46
+ lgt_jobs/lgt_data/model.py,sha256=KSpsImqJhjoTTBuo2XszNpHBu8hFQdgEXZnWMHx6k8Q,33081
47
47
  lgt_jobs/lgt_data/mongo_repository.py,sha256=SKIVxqc1u4I_uXTa3gSJRomRLt_6zKbQtLreC4EZZ8w,47111
48
48
  lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  lgt_jobs/services/web_client.py,sha256=GLWsJkIC8rv6xLFaLwcMm4EwBlVDu0njORwkZqBJaE4,2086
50
50
  lgt_jobs/templates/new_message.html,sha256=dZl8UmdAOOMq4nidvAgMFroSrTV7Pw0RWt2yLp_2idg,6989
51
- leadguru_jobs-0.615.0.dist-info/METADATA,sha256=J3ML-PlTzx3YgMMysV_GF8WkqBus-MuD1zVeBFfpZOs,1319
52
- leadguru_jobs-0.615.0.dist-info/WHEEL,sha256=-oYQCr74JF3a37z2nRlQays_SX2MqOANoqVjBBAP2yE,91
53
- leadguru_jobs-0.615.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
54
- leadguru_jobs-0.615.0.dist-info/RECORD,,
51
+ leadguru_jobs-0.616.0.dist-info/METADATA,sha256=H0m_mcWzj2Wijg_C80NOKaXZJW0aphAL8Ei4zosw640,1319
52
+ leadguru_jobs-0.616.0.dist-info/WHEEL,sha256=-oYQCr74JF3a37z2nRlQays_SX2MqOANoqVjBBAP2yE,91
53
+ leadguru_jobs-0.616.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
54
+ leadguru_jobs-0.616.0.dist-info/RECORD,,
@@ -260,7 +260,9 @@ class Notification(DictionaryModel):
260
260
  def __init__(self):
261
261
  self.enabled: bool = True
262
262
  self.type: NotificationType = NotificationType.INSTANTLY
263
- self.time: datetime | None = None
263
+ self.day: int | None = None
264
+ self.hour: int | None = None
265
+ self.minute: int | None = None
264
266
  self.last_notification: datetime | None = None
265
267
  self.need_to_notify: bool = False
266
268
  self.attributes: list[str] = []
@@ -272,11 +274,11 @@ class Notification(DictionaryModel):
272
274
 
273
275
  now = datetime.now(UTC)
274
276
  current_week_day = datetime.isoweekday(now)
275
- if self.type == NotificationType.ONCE_A_WEEK and current_week_day != self.time.day:
277
+ if self.type == NotificationType.ONCE_A_WEEK and current_week_day != self.day:
276
278
  return False
277
279
 
278
280
  if ((self.type == NotificationType.ONCE_A_DAY or self.type == NotificationType.ONCE_A_WEEK)
279
- and now.hour != self.time.hour and now.minute < self.time.minute):
281
+ and now.hour != self.hour and now.minute < self.minute):
280
282
  return False
281
283
 
282
284
  if ((self.type == NotificationType.ONCE_A_DAY or self.type == NotificationType.ONCE_A_WEEK)