diff --git a/api/db.py b/api/db.py index d1446aa..8542e56 100644 --- a/api/db.py +++ b/api/db.py @@ -96,9 +96,9 @@ def get_image_pkg(self): fits_filename = '' fits_path = '' if header_dictionary: - fits_path = header_dictionary.get('SITEID') + '/' + header_dictionary.get('INSTRUME') - fits_path += '/' + header_dictionary.get('DAY-OBS') + '/raw' - fits_filename = header_dictionary.get('ORIGNAME') + fits_path = header_dictionary.get('SITEID', '') + '/' + header_dictionary.get('INSTRUME', '') + fits_path += '/' + header_dictionary.get('DAY-OBS', '') + '/raw' + fits_filename = header_dictionary.get('ORIGNAME', '') package = { "image_id": self.image_id,