Skip to content

Commit

Permalink
fix: renamed rowsCount to rowCount (#4351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaten committed Jan 24, 2025
1 parent 6d65fae commit 1aec654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analytics/analytics_package/analytics/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get_metrics_by_dimensions_v4_style(service, metrics, dimensions, property, s
while has_more:
result = service.properties().runReport(property=property, body=params).execute()
if rows_left is None:
rows_left = result.get("rowsCount", 0)
rows_left = result.get("rowCount", 0)
page_row_count = len(result["rows"]) if "rows" in result else 0
has_more = page_row_count > 0
if has_more:
Expand All @@ -172,7 +172,7 @@ def get_metrics_by_dimensions_v4_style(service, metrics, dimensions, property, s
offset += max_results
params["offset"] = offset

df = v4_results_to_df(results, dimensions, metrics)
df = v4_results_to_df(results, dimensions, metrics)

return df

Expand Down

0 comments on commit 1aec654

Please sign in to comment.