mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-25 15:25:57 +08:00
Fix for missing GA visitor config
This commit is contained in:
parent
cb192d7208
commit
02255828bc
2 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ def track_event(category=None, action=None, label=None):
|
|||
visitor.user_agent = os.environ.get("SZ_USER_AGENT")
|
||||
if visitor.unique_id > int(0x7fffffff):
|
||||
visitor.unique_id = random.randint(0, 0x7fffffff)
|
||||
else:
|
||||
visitor = Visitor()
|
||||
visitor.unique_id = random.randint(0, 0x7fffffff)
|
||||
except:
|
||||
visitor = Visitor()
|
||||
visitor.unique_id = random.randint(0, 0x7fffffff)
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue