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 9c595a9 commit ca902ccCopy full SHA for ca902cc
api/models/Dataset.py
@@ -108,11 +108,13 @@ def formats_indexing(self) -> list[str]:
108
109
@property
110
def has_charts(self) -> bool:
111
- """Has charts.
+ """Has charts or chart images.
112
113
Used in Elasticsearch indexing.
114
"""
115
- return bool(self.resources.filter(resourcechartdetails__isnull=False).exists())
+ has_charts = self.resources.filter(resourcechartdetails__isnull=False).exists()
116
+ has_chart_images = self.chart_images.exists()
117
+ return has_charts or has_chart_images
118
119
120
def download_count(self) -> int:
0 commit comments