Show More
@@ -11,7 +11,7 b' class Command(BaseCommand):' | |||||
11 | def handle(self, *args, **options): |
|
11 | def handle(self, *args, **options): | |
12 | print('* Domains and their usage') |
|
12 | print('* Domains and their usage') | |
13 | domains = {} |
|
13 | domains = {} | |
14 | for attachment in Attachment.objects.exclude(url=None): |
|
14 | for attachment in Attachment.objects.exclude(url=None).exclude(url=''): | |
15 | full_domain = attachment.url.split('/')[2] |
|
15 | full_domain = attachment.url.split('/')[2] | |
16 | domain = get_domain(full_domain) |
|
16 | domain = get_domain(full_domain) | |
17 | if domain in domains: |
|
17 | if domain in domains: |
General Comments 0
You need to be logged in to leave comments.
Login now