We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309126a commit a60d8e1Copy full SHA for a60d8e1
api/types/type_resource.py
@@ -154,10 +154,9 @@ def preview_data(self) -> Optional[PreviewData]:
154
return None
155
156
# Check if preview is enabled and if it's a CSV file
157
- if (
158
- not getattr(self, "preview_enabled", False)
159
- or not file_details.format.lower() == "csv"
160
- ):
+ if not getattr(
+ self, "preview_enabled", False
+ ) or not file_details.format.lower() in ["csv", "xls", "xlsx"]:
161
162
163
# Use a try-except with a timeout to prevent GraphQL query timeouts
0 commit comments