Skip to content
Advertisement

How to take dynamic input from flask and pass it to other function?

How can I take input from url in flask from the parameter?

JavaScript

I need to take the above Id from input and pass it to other function without again needing to write "id"

JavaScript

How can I directly use the id from give_id(id) function and feed it into vid_stream.get_hls_url function?

Posting complete demo code, In case someone needs to run locally.

JavaScript

Advertisement

Answer

This should work. id is reserved keyword so i have renamed it you can call the function by passing the value. You can call some_function from you give_id view directly.

JavaScript
Advertisement