Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion superset/migrations/shared/migrate_viz/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ def _pre_action(self) -> None:

if time_compare := self.data.get("time_compare"):
self.data["time_compare"] = [
value + " ago" for value in as_list(time_compare) if value
value if value.endswith(" ago") else value + " ago"
for value in as_list(time_compare)
if value
Comment thread
michael-s-molina marked this conversation as resolved.
Outdated
]

comparison_type = self.data.get("comparison_type") or "values"
Expand Down