Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2024
1 parent a595dc3 commit 43a457c
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions tap_google_analytics/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,20 @@ def _parse_metric_type(self, attribute, metrics_ref):
# Custom Google Analytics Metrics {ga:goalXXStarts, ga:metricXX, ... }
# We always treat them as strings as we can not be sure of
# their data type
if attribute.startswith("goal") and attribute.endswith(
(
"Starts",
"Completions",
"Value",
"ConversionRate",
"Abandons",
"AbandonRate",
if (
attribute.startswith("goal")
and attribute.endswith(
(
"Starts",
"Completions",
"Value",
"ConversionRate",
"Abandons",
"AbandonRate",
)
)
) or attribute.startswith(("metric", "calcMetric")):
or attribute.startswith(("metric", "calcMetric"))
):
return "string"

if attribute in metrics_ref:
Expand Down

0 comments on commit 43a457c

Please sign in to comment.