diff --git a/README.md b/README.md index 46875af..b66227b 100644 --- a/README.md +++ b/README.md @@ -2263,7 +2263,7 @@ from concurrent.futures import ThreadPoolExecutor, as_completed ```python = Thread(target=) # Use `args=` to set the arguments. .start() # Starts the thread. Also .is_alive(). -.join() # Waits for the thread to finish. +.join() # Waits for the thread to finish executing. ``` * **Use `'kwargs='` to pass keyword arguments to the function.** * **Use `'daemon=True'`, or the program will not be able to exit while the thread is alive.** @@ -2563,7 +2563,7 @@ app.run(host=None, port=None, debug=None) # Or: $ flask --app FILE run [--ARG[= ```python @app.route('/img/') def serve_file(filename): - return fl.send_from_directory('dirname/', filename) + return fl.send_from_directory('DIRNAME/', filename) ``` ### Dynamic Request @@ -2574,7 +2574,7 @@ def serve_html(sport): ``` * **`'fl.render_template(filename, )'` renders a file located in 'templates' dir.** * **`'fl.abort()'` returns error code and `'return fl.redirect()'` redirects.** -* **`'fl.request.args[]'` returns parameter from the query string (URL right of '?').** +* **`'fl.request.args[]'` returns parameter from query string (URL part right of '?').** * **`'fl.session[] = '` stores session data. It requires secret key to be set at the startup with `'app.secret_key = '`.** ### REST Request diff --git a/index.html b/index.html index 10b709e..f3582b5 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@
- +
@@ -1850,7 +1850,7 @@ delattr(<obj>, '<name>')

Thread

<Thread> = Thread(target=<function>)           # Use `args=<collection>` to set the arguments.
 <Thread>.start()                               # Starts the thread. Also <Thread>.is_alive().
-<Thread>.join()                                # Waits for the thread to finish.
+<Thread>.join()                                # Waits for the thread to finish executing.
 
    @@ -2096,7 +2096,7 @@ app.run(host=None, port=Static Request
    @app.route('/img/<path:filename>')
     def serve_file(filename):
    -    return fl.send_from_directory('dirname/', filename)
    +    return fl.send_from_directory('DIRNAME/', filename)
     

    Dynamic Request

    @app.route('/<sport>')
    @@ -2107,7 +2107,7 @@ app.run(host=None, port='fl.render_template(filename, <kwargs>)' renders a file located in 'templates' dir.
     
  • 'fl.abort(<int>)' returns error code and 'return fl.redirect(<url>)' redirects.
  • -
  • 'fl.request.args[<str>]' returns parameter from the query string (URL right of '?').
  • +
  • 'fl.request.args[<str>]' returns parameter from query string (URL part right of '?').
  • 'fl.session[<str>] = <obj>' stores session data. It requires secret key to be set at the startup with 'app.secret_key = <str>'.

REST Request

@app.post('/<sport>/odds')
@@ -2931,7 +2931,7 @@ $ deactivate                # Deactivates the active