|
131 | 131 | { |
132 | 132 | "data": { |
133 | 133 | "text/plain": [ |
134 | | - "datetime.datetime(2024, 12, 20, 14, 0)" |
| 134 | + "datetime.datetime(2024, 12, 27, 14, 0)" |
135 | 135 | ] |
136 | 136 | }, |
137 | 137 | "execution_count": null, |
|
1230 | 1230 | { |
1231 | 1231 | "data": { |
1232 | 1232 | "text/plain": [ |
1233 | | - "'af1b5dfe-6a32-4348-b1de-692f979f20fb'" |
| 1233 | + "'a2597a39-e99d-4460-90b9-2ca21e87bc8f'" |
1234 | 1234 | ] |
1235 | 1235 | }, |
1236 | 1236 | "execution_count": null, |
|
2478 | 2478 | "name": "stdout", |
2479 | 2479 | "output_type": "stream", |
2480 | 2480 | "text": [ |
2481 | | - "Set to 2024-12-20 19:21:33.748637\n" |
| 2481 | + "Set to 2024-12-27 08:45:58.732664\n" |
2482 | 2482 | ] |
2483 | 2483 | }, |
2484 | 2484 | { |
2485 | 2485 | "data": { |
2486 | 2486 | "text/plain": [ |
2487 | | - "'Session time: 2024-12-20 19:21:33.748637'" |
| 2487 | + "'Session time: 2024-12-27 08:45:58.732664'" |
2488 | 2488 | ] |
2489 | 2489 | }, |
2490 | 2490 | "execution_count": null, |
|
3005 | 3005 | { |
3006 | 3006 | "data": { |
3007 | 3007 | "text/plain": [ |
3008 | | - "'Cookie was set at time 19:21:34.644743'" |
| 3008 | + "'Cookie was set at time 08:45:58.893906'" |
3009 | 3009 | ] |
3010 | 3010 | }, |
3011 | 3011 | "execution_count": null, |
|
3048 | 3048 | "#| export\n", |
3049 | 3049 | "# Starlette doesn't have the '?', so it chomps the whole remaining URL\n", |
3050 | 3050 | "reg_re_param(\"path\", \".*?\")\n", |
3051 | | - "reg_re_param(\"static\", \"ico|gif|jpg|jpeg|webm|css|js|woff|png|svg|mp4|webp|ttf|otf|eot|woff2|txt|html|map\")\n", |
| 3051 | + "reg_re_param(\"static\", \"ico|gif|jpg|jpeg|webm|css|js|woff|png|svg|mp4|webp|ttf|otf|eot|woff2|txt|html|map|pdf\")\n", |
3052 | 3052 | "\n", |
3053 | 3053 | "@patch\n", |
3054 | 3054 | "def static_route_exts(self:FastHTML, prefix='/', static_path='.', exts='static'):\n", |
|
3064 | 3064 | "metadata": {}, |
3065 | 3065 | "outputs": [], |
3066 | 3066 | "source": [ |
3067 | | - "reg_re_param(\"imgext\", \"ico|gif|jpg|jpeg|webm\")\n", |
| 3067 | + "reg_re_param(\"imgext\", \"ico|gif|jpg|jpeg|webm|pdf\")\n", |
3068 | 3068 | "\n", |
3069 | 3069 | "@rt(r'/static/{path:path}{fn}.{ext:imgext}')\n", |
3070 | 3070 | "def get(fn:str, path:str, ext:str): return f\"Getting {fn}.{ext} from /{path}\"\n", |
|
0 commit comments