perf(export): export generates unnecessary files content (#26765)

This commit is contained in:
Stepan
2024-02-22 02:28:38 +03:00
committed by GitHub
parent 744f68d637
commit 2e4f6d3f38
23 changed files with 279 additions and 176 deletions

View File

@@ -1096,7 +1096,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
requested_ids
).run():
with bundle.open(f"{root}/{file_name}", "w") as fp:
fp.write(file_content.encode())
fp.write(file_content().encode())
except DatabaseNotFoundError:
return self.response_404()
buf.seek(0)