mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing log for non-requests.
This commit is contained in:
parent
631f78951c
commit
e9bae8bba8
1 changed files with 5 additions and 4 deletions
|
@ -49,10 +49,11 @@ def user(u, msg, request=None):
|
|||
"/reader/river_stories/",
|
||||
"/social/river_stories/"
|
||||
]
|
||||
path = MAnalyticsPageLoad.clean_path(request.path)
|
||||
if request and path in page_load_paths:
|
||||
MAnalyticsPageLoad.add(user=u, is_premium=is_premium, platform=platform, path=path,
|
||||
duration=seconds)
|
||||
if request:
|
||||
path = MAnalyticsPageLoad.clean_path(request.path)
|
||||
if path in page_load_paths:
|
||||
MAnalyticsPageLoad.add(user=u, is_premium=is_premium, platform=platform, path=path,
|
||||
duration=seconds)
|
||||
|
||||
def cipher(msg):
|
||||
shift = len(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue