diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-01-06 01:33:52 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-01-06 01:33:52 -0800 |
commit | bb2d40ac83f222678ed5b4265355b9f146f2ba3e (patch) | |
tree | 836262b08777a3ad9e23c700d1c4f81d45ffe73c /youtube/accounts.py | |
parent | eea16e5ac32696ea711fbc3846c113ccdfd2928b (diff) | |
download | yt-local-bb2d40ac83f222678ed5b4265355b9f146f2ba3e.tar.lz yt-local-bb2d40ac83f222678ed5b4265355b9f146f2ba3e.tar.xz yt-local-bb2d40ac83f222678ed5b4265355b9f146f2ba3e.zip |
rename env['fields'] to env['parameters'] and rename fields to parameters in general
Diffstat (limited to 'youtube/accounts.py')
-rw-r--r-- | youtube/accounts.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube/accounts.py b/youtube/accounts.py index 6edfa97..458703a 100644 --- a/youtube/accounts.py +++ b/youtube/accounts.py @@ -52,18 +52,18 @@ def _add_account(username, password, save, use_tor): return False def add_account(env, start_response): - fields = env['fields'] - if 'save' in fields and fields['save'][0] == "on": + parameters = env['parameters'] + if 'save' in parameters and parameters['save'][0] == "on": save_account = True else: save_account = False - if 'use_tor' in fields and fields['use_tor'][0] == "on": + if 'use_tor' in parameters and parameters['use_tor'][0] == "on": use_tor = True else: use_tor = False - if _add_account(fields['username'][0], fields['password'][0], save_account, use_tor ): + if _add_account(parameters['username'][0], parameters['password'][0], save_account, use_tor ): start_response('200 OK', () ) return b'Account successfully added' else: |