File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -322,24 +322,24 @@ def rollup(cls, day=None):
322322 created__lt = end_of_day ,
323323 type = "pageview" ,
324324 data__is_comment = True ,
325- # data__referrer__isnull =False,
325+ meta__referrer__isnull = False ,
326326 data__pathname__isnull = False ,
327327 data__is_bot__isnull = False ,
328328 )
329- .values ("data__referrer " , "data__pathname" , "data__is_bot" )
329+ .values ("meta__referrer " , "data__pathname" , "data__is_bot" )
330330 .annotate (count = Count ("id" ))
331331 .order_by ("-count" )
332332 )
333333 bulk = []
334334 for agg in agg_query :
335335 print (
336- f"{ agg ['count' ]:>5} { agg ['data__referrer ' ] or '' :<12} { agg ['data__pathname' ]:<12} is_bot={ agg ['data__is_bot' ]} "
336+ f"{ agg ['count' ]:>5} { agg ['meta__referrer ' ] or '*no referrer* ' :<12} { agg ['data__pathname' ]:<12} is_bot={ agg ['data__is_bot' ]} "
337337 )
338338 bulk .append (
339339 cls (
340340 day = day ,
341341 count = agg ["count" ],
342- referrer = agg ["data__referrer " ] or "" ,
342+ referrer = agg ["meta__referrer " ] or "" ,
343343 is_bot = agg ["data__is_bot" ],
344344 pathname = agg ["data__pathname" ],
345345 )
You can’t perform that action at this time.
0 commit comments