mirror of
https://github.com/KevinMidboe/fetch-the-release.git
synced 2025-10-29 09:30:24 +00:00
USER environment variable is to vague, renamed to prefix user and pass with SEASONED_
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
BASE_URL=
|
BASE_URL=
|
||||||
AUTHORIZATION=
|
AUTHORIZATION=
|
||||||
USER=
|
SEASONED_USER=
|
||||||
PASS=
|
SEASONED_PASS=
|
||||||
|
|||||||
4
main.py
4
main.py
@@ -15,8 +15,8 @@ AUTHORIZATION_TOKEN = os.getenv('AUTHORIZATION_TOKEN') or None
|
|||||||
CACHE = Redis(host='localhost', port=6379, db=0)
|
CACHE = Redis(host='localhost', port=6379, db=0)
|
||||||
|
|
||||||
|
|
||||||
USER = os.getenv('USER') or None
|
USER = os.getenv('SEASONED_USER') or None
|
||||||
PASS = os.getenv('PASS') or None
|
PASS = os.getenv('SEASONED_PASS') or None
|
||||||
|
|
||||||
if None in [BASE_URL, USER, PASS]:
|
if None in [BASE_URL, USER, PASS]:
|
||||||
print('ERROR! Set environment variables, see ./.env-example or README')
|
print('ERROR! Set environment variables, see ./.env-example or README')
|
||||||
|
|||||||
Reference in New Issue
Block a user