-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exporting images/csvs/pdfs is returning None #1561
Comments
The populate methods populate the property on the item, rather than directly return the output. You retrieve the content from
|
Embarrassing. Thank you. Is there any documentation on this anywhere? |
Views.populate_image has an example. In newer versions of TSC, the functions should also have docstrings and typehints that indicate what the functions accept and return. There is an example export, but it might be too generalized to be able to pick up specifics like this. |
Also, be cautious with this syntax: all_workbooks, _ = server.workbooks.get()
print(f"Found {len(all_workbooks)} workbooks.")
target_workbook = next(
(workbook for workbook in all_workbooks if workbook.name == wb_name), None
)
I recommend looking at the docs for Page through Results as well as Filter and Sort for details. Personally, I prefer the Django style filtering. |
Very useful, thanks |
Attempting to export view to an image however it keeps returning blank:
returns
There is metadata for the view but any type of .populate() is returning nothing. There are no filters on the view or in the dashboard and I have full privileges to export.
Am I missing something?
The text was updated successfully, but these errors were encountered: