dmart 1.4.1__py3-none-any.whl → 1.4.2__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.
- {dmart-1.4.1.dist-info → dmart-1.4.2.dist-info}/METADATA +1 -1
- {dmart-1.4.1.dist-info → dmart-1.4.2.dist-info}/RECORD +8 -8
- dmart.py +2 -2
- main.py +2 -2
- utils/settings.py +1 -0
- {dmart-1.4.1.dist-info → dmart-1.4.2.dist-info}/WHEEL +0 -0
- {dmart-1.4.1.dist-info → dmart-1.4.2.dist-info}/entry_points.txt +0 -0
- {dmart-1.4.1.dist-info → dmart-1.4.2.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
bundler.py,sha256=so8ZJResb1PcOH5vboa_mpFAdYr_T8u8DbbFXd570Lg,1704
|
|
2
2
|
data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
|
|
3
|
-
dmart.py,sha256=
|
|
3
|
+
dmart.py,sha256=WugBannLMtYISbGPfK5Lak-2BPm14cFHNyJwkD-26RM,21711
|
|
4
4
|
get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
|
|
5
|
-
main.py,sha256=
|
|
5
|
+
main.py,sha256=3UqzJUoiaZmcoL4yFInka5DMfh_-Agl-gHRCHELL2UM,19551
|
|
6
6
|
migrate.py,sha256=hn1MZoVby_Jjqhc7y3CrLcGD619QmVZv3PONNvO7VKQ,665
|
|
7
7
|
password_gen.py,sha256=xjx8wi105ZYvhLBBQj7_rugACpxifGXHse6f7YlGXWQ,196
|
|
8
8
|
run_notification_campaign.py,sha256=ZCvHfaimK4W6q4XuHs2r6wavMGipYYw4aUkNlxmGUd8,2652
|
|
@@ -135,15 +135,15 @@ utils/query_policies_helper.py,sha256=jBcNI_15P6LqVeWz6w9UMreLuNIc50GxqAf17KzxE8
|
|
|
135
135
|
utils/regex.py,sha256=cv9b_l_e8tz42mKckeeyDgypKqh2e71E28co2iuEVxA,2286
|
|
136
136
|
utils/repository.py,sha256=9L-IvQ0Js0SQ5OR-Rh0i2Wdu4H9H06r8eE84hfBIu7Q,18313
|
|
137
137
|
utils/router_helper.py,sha256=Tgoq3oakejdEeyeVieTNk38JsPZ8x5RuR0kw2THc1mI,604
|
|
138
|
-
utils/settings.py,sha256=
|
|
138
|
+
utils/settings.py,sha256=eWsIKxyFzeCO7Jte0U5SR8SiCLSXz0dD0vO0x-R-y2k,5686
|
|
139
139
|
utils/sms_notifier.py,sha256=04D6D_ldk3S9SojI7_381pqLc8v9lligeNHAysohz7w,550
|
|
140
140
|
utils/social_sso.py,sha256=Dm1W6U9OwKbAeUwM-kwJBHFEoreeoN-s-RHdOZ1-cNg,2216
|
|
141
141
|
utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,7005
|
|
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-1.4.
|
|
146
|
-
dmart-1.4.
|
|
147
|
-
dmart-1.4.
|
|
148
|
-
dmart-1.4.
|
|
149
|
-
dmart-1.4.
|
|
145
|
+
dmart-1.4.2.dist-info/METADATA,sha256=Kyjoer4hkgh3VhudnHtnbyuJO5ZJzjfheq2QihC6sPI,2068
|
|
146
|
+
dmart-1.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
147
|
+
dmart-1.4.2.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
|
|
148
|
+
dmart-1.4.2.dist-info/top_level.txt,sha256=JTypu1r5v9v7ru-60JSSbnSMEESHFRMacpcz-rPJx_U,262
|
|
149
|
+
dmart-1.4.2.dist-info/RECORD,,
|
dmart.py
CHANGED
|
@@ -360,7 +360,7 @@ def hypercorn_main() -> int:
|
|
|
360
360
|
except:
|
|
361
361
|
pass
|
|
362
362
|
|
|
363
|
-
url = f"http://{host}:{port}/
|
|
363
|
+
url = f"http://{host}:{port}{settings.cxb_url}/"
|
|
364
364
|
|
|
365
365
|
def open_browser():
|
|
366
366
|
time.sleep(2) # Give server a moment to start
|
|
@@ -397,7 +397,7 @@ def main():
|
|
|
397
397
|
sys.argv.pop(idx)
|
|
398
398
|
|
|
399
399
|
if open_cxb:
|
|
400
|
-
url = f"http://{settings.listening_host}:{settings.listening_port}/
|
|
400
|
+
url = f"http://{settings.listening_host}:{settings.listening_port}{settings.cxb_url}/"
|
|
401
401
|
def open_browser():
|
|
402
402
|
time.sleep(2) # Give server a moment to start
|
|
403
403
|
webbrowser.open(url)
|
main.py
CHANGED
|
@@ -474,7 +474,7 @@ if not os.path.exists(cxb_path):
|
|
|
474
474
|
cxb_path = cxb_dist_path
|
|
475
475
|
|
|
476
476
|
if os.path.isdir(cxb_path):
|
|
477
|
-
@app.get("/
|
|
477
|
+
@app.get(f"{settings.cxb_url}/config.json", include_in_schema=False)
|
|
478
478
|
async def get_cxb_config():
|
|
479
479
|
# Priority 0: Explicit path from flag
|
|
480
480
|
cxb_config = os.getenv("DMART_CXB_CONFIG")
|
|
@@ -508,7 +508,7 @@ if os.path.isdir(cxb_path):
|
|
|
508
508
|
"websocket": settings.websocket_url if settings.websocket_url else f"ws://{settings.listening_host}:{settings.websocket_port}/ws"
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
app.mount(
|
|
511
|
+
app.mount(settings.cxb_url, StaticFiles(directory=cxb_path, html=True), name="cxb")
|
|
512
512
|
|
|
513
513
|
@app.options("/{x:path}", include_in_schema=False)
|
|
514
514
|
async def myoptions():
|
utils/settings.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|