Skip to content

Commit 49fc1bb

Browse files
committed
format
1 parent e9d8519 commit 49fc1bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

posthog/client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def get_decide(self, distinct_id, groups=None, person_properties=None, group_pro
205205
resp_data = decide(self.api_key, self.host, timeout=self.feature_flags_request_timeout_seconds, **request_data)
206206

207207
return resp_data
208-
208+
209209
def get_remote_config_payload(self, flag_id: int):
210210
resp_data = remote_config(
211211
self.personal_api_key,
@@ -819,7 +819,7 @@ def get_feature_flag_payload(
819819
self.distinct_ids_feature_flags_reported[distinct_id].add(feature_flag_reported_key)
820820

821821
return payload
822-
822+
823823
def get_decrypted_feature_flag_payload(self, flag_id: int):
824824
if self.disabled:
825825
return None
@@ -833,9 +833,7 @@ def get_decrypted_feature_flag_payload(self, flag_id: int):
833833
try:
834834
return self.get_remote_config_payload(flag_id=flag_id)
835835
except Exception as e:
836-
self.log.exception(
837-
f"[FEATURE FLAGS] Unable to get decrypted feature flag payload: {e}"
838-
)
836+
self.log.exception(f"[FEATURE FLAGS] Unable to get decrypted feature flag payload: {e}")
839837

840838
def _compute_payload_locally(self, key, match_value):
841839
payload = None

posthog/request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ def decide(api_key: str, host: Optional[str] = None, gzip: bool = False, timeout
8080
res = post(api_key, host, "/decide/?v=3", gzip, timeout, **kwargs)
8181
return _process_response(res, success_message="Feature flags decided successfully")
8282

83+
8384
def remote_config(api_key: str, host: Optional[str] = None, flag_id: int | str = "", timeout: int = 15) -> Any:
8485
"""Get remote config flag value from remote_config API endpoint"""
8586
return get(api_key, f"/api/projects/@current/feature_flags/{flag_id}/remote_config/", host, timeout)
8687

88+
8789
def batch_post(
8890
api_key: str, host: Optional[str] = None, gzip: bool = False, timeout: int = 15, **kwargs
8991
) -> requests.Response:

0 commit comments

Comments
 (0)