Skip to content

Commit

Permalink
Fix bug breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Oct 30, 2023
1 parent b0b4966 commit c0ae141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0ae141

Please sign in to comment.