mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat: Add excel export (#22006)
Co-authored-by: Igor Șincariov <igorsinc@pm.me> Co-authored-by: EugeneTorap <evgenykrutpro@gmail.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from enum import Enum
|
||||
from typing import Set
|
||||
|
||||
|
||||
class ChartDataResultFormat(str, Enum):
|
||||
@@ -24,6 +25,11 @@ class ChartDataResultFormat(str, Enum):
|
||||
|
||||
CSV = "csv"
|
||||
JSON = "json"
|
||||
XLSX = "xlsx"
|
||||
|
||||
@classmethod
|
||||
def table_like(cls) -> Set["ChartDataResultFormat"]:
|
||||
return {cls.CSV} | {cls.XLSX}
|
||||
|
||||
|
||||
class ChartDataResultType(str, Enum):
|
||||
|
||||
Reference in New Issue
Block a user