Skip to content

Commit 091f07f

Browse files
committed
Web
1 parent e21ef70 commit 091f07f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ def serve_html(sport):
25582558
return render_template_string('<h1>{{title}}</h1>', title=sport)
25592559
```
25602560
* **To return an error code use `'abort(<int>)'` and to redirect use `'redirect(<url>)'`.**
2561-
* **`'request.args[<str>]'` returns parameter from the query string (URL part after the ?).**
2561+
* **`'request.args[<str>]'` returns parameter from the query string (URL part after '?').**
25622562
* **Use `'session[key] = value'` to store session data like username, etc.**
25632563

25642564
### REST Request

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
20992099

21002100
<ul>
21012101
<li><strong>To return an error code use <code class="python hljs"><span class="hljs-string">'abort(&lt;int&gt;)'</span></code> and to redirect use <code class="python hljs"><span class="hljs-string">'redirect(&lt;url&gt;)'</span></code>.</strong></li>
2102-
<li><strong><code class="python hljs"><span class="hljs-string">'request.args[&lt;str&gt;]'</span></code> returns parameter from the query string (URL part after the ?).</strong></li>
2102+
<li><strong><code class="python hljs"><span class="hljs-string">'request.args[&lt;str&gt;]'</span></code> returns parameter from the query string (URL part after '?').</strong></li>
21032103
<li><strong>Use <code class="python hljs"><span class="hljs-string">'session[key] = value'</span></code> to store session data like username, etc.</strong></li>
21042104
</ul>
21052105
<div><h3 id="restrequest">REST Request</h3><pre><code class="python language-python hljs"><span class="hljs-meta">@app.post('/&lt;sport&gt;/odds')</span>

0 commit comments

Comments
 (0)