leadguru-jobs 0.613.0__py3-none-any.whl → 0.615.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.613.0
3
+ Version: 0.615.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=AmXH4FMHNjLePy6pLT7unqzETnLEzsGPzbTDfjfnLW8,33013
46
+ lgt_jobs/lgt_data/model.py,sha256=91A1X4Ik85rEb41JULaAE6vNr8FE81bAtPzuRHRoFMA,33026
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.613.0.dist-info/METADATA,sha256=uHwXNfqI0AHc7ZgFU94rZI_EzRJxGnrgikzZ51EcVM4,1319
52
- leadguru_jobs-0.613.0.dist-info/WHEEL,sha256=FZ75kcLy9M91ncbIgG8dnpCncbiKXSRGJ_PFILs6SFg,91
53
- leadguru_jobs-0.613.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
54
- leadguru_jobs-0.613.0.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.0.1)
2
+ Generator: setuptools (71.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -260,8 +260,7 @@ class Notification(DictionaryModel):
260
260
  def __init__(self):
261
261
  self.enabled: bool = True
262
262
  self.type: NotificationType = NotificationType.INSTANTLY
263
- self.day: int | None = None
264
- self.hour: int | None = None
263
+ self.time: datetime | None = None
265
264
  self.last_notification: datetime | None = None
266
265
  self.need_to_notify: bool = False
267
266
  self.attributes: list[str] = []
@@ -273,11 +272,11 @@ class Notification(DictionaryModel):
273
272
 
274
273
  now = datetime.now(UTC)
275
274
  current_week_day = datetime.isoweekday(now)
276
- if self.type == NotificationType.ONCE_A_WEEK and current_week_day != self.day:
275
+ if self.type == NotificationType.ONCE_A_WEEK and current_week_day != self.time.day:
277
276
  return False
278
277
 
279
278
  if ((self.type == NotificationType.ONCE_A_DAY or self.type == NotificationType.ONCE_A_WEEK)
280
- and now.hour != self.hour):
279
+ and now.hour != self.time.hour and now.minute < self.time.minute):
281
280
  return False
282
281
 
283
282
  if ((self.type == NotificationType.ONCE_A_DAY or self.type == NotificationType.ONCE_A_WEEK)