Commit d1c04080853a84d64d90c15b984f38a176d802b0
Committed by
Sergio Oliveira
1 parent
7128a979
Exists in
master
and in
39 other branches
Fix flake8
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Showing
3 changed files
with
5 additions
and
3 deletions
Show diff stats
colab/accounts/utils/mailman.py
| ... | ... | @@ -48,9 +48,11 @@ def update_subscription(address, lists): |
| 48 | 48 | if maillist not in current_lists: |
| 49 | 49 | subscribe(maillist, address) |
| 50 | 50 | |
| 51 | + | |
| 51 | 52 | def address_lists(address): |
| 52 | 53 | return mailing_lists(address=address) |
| 53 | 54 | |
| 55 | + | |
| 54 | 56 | def mailing_lists(**kwargs): |
| 55 | 57 | url = get_url() |
| 56 | 58 | |
| ... | ... | @@ -62,9 +64,11 @@ def mailing_lists(**kwargs): |
| 62 | 64 | |
| 63 | 65 | return lists.json() |
| 64 | 66 | |
| 67 | + | |
| 65 | 68 | def is_private_list(name): |
| 66 | 69 | return dict(all_lists(private=True))[name] |
| 67 | 70 | |
| 71 | + | |
| 68 | 72 | def all_lists(*args, **kwargs): |
| 69 | 73 | return mailing_lists(*args, **kwargs) |
| 70 | 74 | ... | ... |
colab/super_archives/management/commands/import_emails.py
colab/super_archives/views.py
| ... | ... | @@ -122,10 +122,8 @@ class ThreadDashboardView(View): |
| 122 | 122 | def get(self, request): |
| 123 | 123 | MAX = 6 |
| 124 | 124 | context = {} |
| 125 | - all_lists = mailman.all_lists(description=True) | |
| 126 | 125 | all_privates = dict(mailman.all_lists(private=True)) |
| 127 | 126 | |
| 128 | - | |
| 129 | 127 | context['lists'] = [] |
| 130 | 128 | |
| 131 | 129 | user = User.objects.get(username=request.user) | ... | ... |