biigle / reports

:m: BIIGLE module to generate reports for projects and volumes
GNU General Public License v3.0
1 stars 2 forks source link

Set empty JSON object if CSV report attributes are empty #87

Open mzur opened 2 years ago

mzur commented 2 years ago

The documentation says that the (image annotation) CSV report includes JSON objects in the attributes column. However, the column can also be empty if there are no image attributes. In this case, the report should contain an empty JSON object ({}) for the image. Do this consistently for the other CSV reports as well.

mzur commented 2 years ago

Alternatively, maybe we should rather update the manual and say that the attributes can be empty, too. IMO, an empty field is better than repeated {} in the CSV.