##// END OF EJS Templates
Fixed statistics module to exclude empty (not null) URLs
neko259 -
r1749:39e5bf4f default
parent child Browse files
Show More
@@ -11,7 +11,7 b' class Command(BaseCommand):'
11 11 def handle(self, *args, **options):
12 12 print('* Domains and their usage')
13 13 domains = {}
14 for attachment in Attachment.objects.exclude(url=None):
14 for attachment in Attachment.objects.exclude(url=None).exclude(url=''):
15 15 full_domain = attachment.url.split('/')[2]
16 16 domain = get_domain(full_domain)
17 17 if domain in domains:
General Comments 0
You need to be logged in to leave comments. Login now