dmart 0.1.9__py3-none-any.whl → 0.1.10__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.4
2
2
  Name: dmart
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -5,7 +5,7 @@ get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
5
5
  main.py,sha256=XqKHlgFy_S_EtvbGsSxiCMSApSU33BlTpv8T4UWX0yc,17351
6
6
  migrate.py,sha256=hn1MZoVby_Jjqhc7y3CrLcGD619QmVZv3PONNvO7VKQ,665
7
7
  password_gen.py,sha256=xjx8wi105ZYvhLBBQj7_rugACpxifGXHse6f7YlGXWQ,196
8
- run_notification_campaign.py,sha256=wKo8B79eiATOmAnxXsOJkSvb5BGwZTAQuxN6-HfA7Ws,2907
8
+ run_notification_campaign.py,sha256=ZCvHfaimK4W6q4XuHs2r6wavMGipYYw4aUkNlxmGUd8,2652
9
9
  scheduled_notification_handler.py,sha256=m26TryqHuvXR5PUPvzY9nFnpJpfbsuRjc_Q6wHdxvE8,4643
10
10
  schema_migration.py,sha256=a1w3c-fSm95MVWFzobgy0AxIbhbzMDSfD46easTmwKE,6132
11
11
  schema_modulate.py,sha256=vB7NxvqghqNpFe__p0ll03WsvNftzxBbQ6UXB2UfxNU,6454
@@ -130,7 +130,7 @@ utils/logger.py,sha256=peejQnq9B0eaHwdLynBHT7FUCq7jCX_DhkX6BcxrLkA,5274
130
130
  utils/middleware.py,sha256=PAVwnLzs0cyT_ZIgc1slqadEOJNCPliLhOTjaYx0Waw,3399
131
131
  utils/notification.py,sha256=O9oOeU9cRm3e9UAc-VJONWx-TzqbCMddFNaTQilE6ks,2479
132
132
  utils/password_hashing.py,sha256=NZZsmtPG9Vkocipk3DlDKKHKUdxRKA4yOhCurD8dUhg,356
133
- utils/plugin_manager.py,sha256=nIu99A8BWDhGerL880o5K9pCVQZbnjHJPNo1wQ_UbfU,7900
133
+ utils/plugin_manager.py,sha256=brQoE4u2WxH6EMvUOYQlnOnSUbKwha92-UfAgWUaHRU,7645
134
134
  utils/query_policies_helper.py,sha256=jBcNI_15P6LqVeWz6w9UMreLuNIc50GxqAf17KzxE84,4392
135
135
  utils/regex.py,sha256=cv9b_l_e8tz42mKckeeyDgypKqh2e71E28co2iuEVxA,2286
136
136
  utils/repository.py,sha256=9L-IvQ0Js0SQ5OR-Rh0i2Wdu4H9H06r8eE84hfBIu7Q,18313
@@ -142,8 +142,8 @@ utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,700
142
142
  utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
143
143
  utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
144
144
  utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
145
- dmart-0.1.9.dist-info/METADATA,sha256=Qoj8pMpyCZ9uJXFJxfuOeofT0WOWqlvGwW-vYUbql3s,2091
146
- dmart-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
147
- dmart-0.1.9.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
148
- dmart-0.1.9.dist-info/top_level.txt,sha256=JTypu1r5v9v7ru-60JSSbnSMEESHFRMacpcz-rPJx_U,262
149
- dmart-0.1.9.dist-info/RECORD,,
145
+ dmart-0.1.10.dist-info/METADATA,sha256=RMl8zHzCOJJRamNEhE2DRvGLc7QhcplHF8iG9oMjGGo,2092
146
+ dmart-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
147
+ dmart-0.1.10.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
148
+ dmart-0.1.10.dist-info/top_level.txt,sha256=JTypu1r5v9v7ru-60JSSbnSMEESHFRMacpcz-rPJx_U,262
149
+ dmart-0.1.10.dist-info/RECORD,,
@@ -11,22 +11,9 @@ from utils.settings import settings
11
11
  CUSTOM_PLUGINS_PATH = settings.spaces_folder / "custom_plugins"
12
12
 
13
13
  # Allow python to search for modules inside the custom plugins
14
- # be including the path to the parent folder of the custom plugins to sys.path
15
- back_out_of_project = 2
16
- back_to_spaces = 0
17
-
18
- for part in CUSTOM_PLUGINS_PATH.parts:
19
- if part == "..":
20
- back_to_spaces += 1
21
-
22
- if __file__.endswith(".pyc"):
23
- back_out_of_project += 1
24
-
25
- sys.path.append(
26
- "/".join(__file__.split("/")[:-(back_out_of_project+back_to_spaces)]) +
27
- "/" +
28
- "/".join(CUSTOM_PLUGINS_PATH.parts[back_to_spaces:-1])
29
- )
14
+ # by including the path to the parent folder of the custom plugins to sys.path
15
+ if CUSTOM_PLUGINS_PATH.parent.exists():
16
+ sys.path.append(str(CUSTOM_PLUGINS_PATH.parent.resolve()))
30
17
 
31
18
  def load_notification_plugin():
32
19
  # Load the plugin module
utils/plugin_manager.py CHANGED
@@ -21,22 +21,9 @@ from utils.settings import settings
21
21
  CUSTOM_PLUGINS_PATH = settings.spaces_folder / "custom_plugins"
22
22
 
23
23
  # Allow python to search for modules inside the custom plugins
24
- # be including the path to the parent folder of the custom plugins to sys.path
25
- back_out_of_project = 2
26
- back_to_spaces = 0
27
-
28
- for part in CUSTOM_PLUGINS_PATH.parts:
29
- if part == "..":
30
- back_to_spaces += 1
31
-
32
- if __file__.endswith(".pyc"):
33
- back_out_of_project += 1
34
-
35
- sys.path.append(
36
- "/".join(__file__.split("/")[:-(back_out_of_project+back_to_spaces)]) +
37
- "/" +
38
- "/".join(CUSTOM_PLUGINS_PATH.parts[back_to_spaces:-1])
39
- )
24
+ # by including the path to the parent folder of the custom plugins to sys.path
25
+ if CUSTOM_PLUGINS_PATH.parent.exists():
26
+ sys.path.append(str(CUSTOM_PLUGINS_PATH.parent.resolve()))
40
27
 
41
28
  class PluginManager:
42
29
 
File without changes