Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
use yarl to build analytics url
Browse files Browse the repository at this point in the history
Co-authored-by: Tulir Asokan <[email protected]>
  • Loading branch information
the-newman and tulir authored Oct 9, 2023
1 parent c140b8f commit 884ec69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_facebook/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def init(host: str | None, token: str | None, user_id: str | None = None):
if not host or not token:
return
global analytics_url, analytics_token, analytics_user_id, http
analytics_url = urlunparse(("https", host, "/v1/track", "", "", ""))
analytics_url = URL.build(scheme="https", host=host, path="/v1/track")
analytics_token = token
analytics_user_id = user_id
http = aiohttp.ClientSession()

0 comments on commit 884ec69

Please sign in to comment.