Skip to content

Commit

Permalink
fix(localization): localize legacy pivot table (#22677)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemonsh authored Apr 7, 2023
1 parent f31d847 commit 749c4fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import simplejson as json
from dateutil import relativedelta as rdelta
from flask import request
from flask_babel import lazy_gettext as _
from flask_babel import gettext as __, lazy_gettext as _
from geopy.point import Point
from pandas.tseries.frequencies import to_offset

Expand Down Expand Up @@ -1007,6 +1007,7 @@ def get_data(self, df: pd.DataFrame) -> VizData:
values=metrics,
aggfunc=aggfuncs,
margins=self.form_data.get("pivot_margins"),
margins_name=__("Total"),
)

# Re-order the columns adhering to the metric ordering.
Expand Down

0 comments on commit 749c4fd

Please sign in to comment.