diff options
| author | James Taylor <user234683@users.noreply.github.com> | 2018-12-26 19:37:15 -0800 |
|---|---|---|
| committer | James Taylor <user234683@users.noreply.github.com> | 2018-12-26 19:37:15 -0800 |
| commit | fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719 (patch) | |
| tree | 73625c7c9a30c742c76cb055219ab6be9d959a99 /youtube/accounts.py | |
| parent | dfbd7778d10c15cf2e12e9007beba5458a3f3ab1 (diff) | |
| download | yt-local-fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719.tar.lz yt-local-fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719.tar.xz yt-local-fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719.zip | |
Added account selection to comment boxes
Diffstat (limited to 'youtube/accounts.py')
| -rw-r--r-- | youtube/accounts.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/accounts.py b/youtube/accounts.py index bc0e017..6959fb2 100644 --- a/youtube/accounts.py +++ b/youtube/accounts.py @@ -16,6 +16,9 @@ except FileNotFoundError: # global var for temporary storage of account info accounts = {} +def username_list(): + return accounts.keys() + def save_accounts(): to_save = {username: account for username, account in accounts.items() if account['save']} with open(os.path.join(settings.data_dir, 'accounts.txt'), 'w', encoding='utf-8') as f: |
