You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the test.py you are redefining the variables multiple times, like in a bash script. in python you don't need to do this as its ok to define once at the top and then it will be reused again as the variable state is held, its not like an env var. If on the other hand you want to import the "BASE" from the environment for example, you can do it with this style: https://www.freecodecamp.org/news/python-env-vars-how-to-get-an-environment-variable-in-python/
Hi, @PastaGringo
In the test.py you are redefining the variables multiple times, like in a bash script. in python you don't need to do this as its ok to define once at the top and then it will be reused again as the variable state is held, its not like an env var. If on the other hand you want to import the "BASE" from the environment for example, you can do it with this style: https://www.freecodecamp.org/news/python-env-vars-how-to-get-an-environment-variable-in-python/
CallSTR/test.py
Lines 10 to 11 in d20f90a
When making a class, usually you put multiple methods referencing an object to handle data (aka OOP)
for example of oop https://realpython.com/inheritance-composition-python/
CallSTR/main.py
Line 62 in d20f90a
Suggest endpoint like this:
api.add_resource(Convert_from_nsec_hex, "/nsec_hex/<string:nsec_hex>")
CallSTR/main.py
Line 38 in d20f90a
Just a few comments for starters
The text was updated successfully, but these errors were encountered: