Skip to content

Commit a6adf30

Browse files
committed
removed debugging print stmts
1 parent 6383de6 commit a6adf30

File tree

2 files changed

+7
-37
lines changed

2 files changed

+7
-37
lines changed

fasthtml/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,7 @@ def __getattr__(self, name):
695695

696696
def to_app(self, app):
697697
"Add routes to `app`"
698-
for args in self.routes:
699-
print(args)
700-
app._add_route(*args)
698+
for args in self.routes: app._add_route(*args)
701699
for args in self.wss: app._add_ws(*args)
702700

703701
def ws(self, path:str, conn=None, disconn=None, name=None, middleware=None):

nbs/api/00_core.ipynb

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,13 +2423,13 @@
24232423
"name": "stdout",
24242424
"output_type": "stream",
24252425
"text": [
2426-
"Set to 2024-12-20 19:13:21.676722\n"
2426+
"Set to 2024-12-20 19:21:33.748637\n"
24272427
]
24282428
},
24292429
{
24302430
"data": {
24312431
"text/plain": [
2432-
"'Session time: 2024-12-20 19:13:21.676722'"
2432+
"'Session time: 2024-12-20 19:21:33.748637'"
24332433
]
24342434
},
24352435
"execution_count": null,
@@ -2665,9 +2665,7 @@
26652665
"\n",
26662666
" def to_app(self, app):\n",
26672667
" \"Add routes to `app`\"\n",
2668-
" for args in self.routes: \n",
2669-
" print(args)\n",
2670-
" app._add_route(*args)\n",
2668+
" for args in self.routes: app._add_route(*args)\n",
26712669
" for args in self.wss: app._add_ws(*args)\n",
26722670
" \n",
26732671
" def ws(self, path:str, conn=None, disconn=None, name=None, middleware=None):\n",
@@ -2715,20 +2713,7 @@
27152713
"execution_count": null,
27162714
"id": "cd413b0d",
27172715
"metadata": {},
2718-
"outputs": [
2719-
{
2720-
"name": "stdout",
2721-
"output_type": "stream",
2722-
"text": [
2723-
"(<function get>, '/hi', None, None, True, <function noop_body>)\n",
2724-
"(<function post>, '/hi', None, None, True, <function noop_body>)\n",
2725-
"(<function ho>, '/ho', None, None, True, <function noop_body>)\n",
2726-
"(<function show_host>, '/hostie', None, None, True, <function noop_body>)\n",
2727-
"(<function yoyo>, '/yoyo', None, None, True, <function noop_body>)\n",
2728-
"(<function index>, '/', None, None, True, <function noop_body>)\n"
2729-
]
2730-
}
2731-
],
2716+
"outputs": [],
27322717
"source": [
27332718
"app,cli,_ = get_cli(FastHTML())\n",
27342719
"ar.to_app(app)"
@@ -2820,20 +2805,7 @@
28202805
"execution_count": null,
28212806
"id": "77ce8548",
28222807
"metadata": {},
2823-
"outputs": [
2824-
{
2825-
"name": "stdout",
2826-
"output_type": "stream",
2827-
"text": [
2828-
"(<function get>, '/products/hi', None, None, True, <function noop_body>)\n",
2829-
"(<function post>, '/products/hi', None, None, True, <function noop_body>)\n",
2830-
"(<function ho>, '/products/ho', None, None, True, <function noop_body>)\n",
2831-
"(<function show_host>, '/products/hostie', None, None, True, <function noop_body>)\n",
2832-
"(<function yoyo>, '/products/yoyo', None, None, True, <function noop_body>)\n",
2833-
"(<function index>, '/products/', None, None, True, <function noop_body>)\n"
2834-
]
2835-
}
2836-
],
2808+
"outputs": [],
28372809
"source": [
28382810
"app,cli,_ = get_cli(FastHTML())\n",
28392811
"ar2.to_app(app)"
@@ -2978,7 +2950,7 @@
29782950
{
29792951
"data": {
29802952
"text/plain": [
2981-
"'Cookie was set at time 19:13:22.543473'"
2953+
"'Cookie was set at time 19:21:34.644743'"
29822954
]
29832955
},
29842956
"execution_count": null,

0 commit comments

Comments
 (0)