Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Purdenko committed Dec 2, 2024
1 parent ac5ce35 commit dacd541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bhtom2/bhtom_common/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_calibration_data(self, obj):
'id': cal.id or "",
'time_photometry': cal.modified or "",
'mjd': cal.mjd or "",
'calib_survey_filter': f"{cal.use_catalog.survey or ''}/{cal.use_catalog.filters or ''}",
'calib_survey_filter': f"{cal.use_catalog.survey or ''}/{cal.use_catalog.filters or ''}" if cal.use_catalog else "",
'standardised_to': f"{cal.survey or ''}/{cal.best_filter or ''}" if cal.survey and cal.best_filter else "",
'magnitude': cal.mag or "",
'zp': cal.zeropoint or "",
Expand Down

0 comments on commit dacd541

Please sign in to comment.