Skip to content

Commit

Permalink
Changed adding to list to append
Browse files Browse the repository at this point in the history
  • Loading branch information
d-giles authored and bsipocz committed May 22, 2024
1 parent 4ae201b commit 2c85a86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyvo/dal/sia.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,11 @@ def format(self, format_):
normalized_formats = []
for user_input in format_:
if user_input.upper() in ['ALL', 'METADATA', 'GRAPHIC', 'GRAPHIC-ALL']:
normalized_formats += [user_input.upper()]
normalized_formats.append(user_input.upper())
elif user_input.split('-')[0].upper() == 'GRAPHIC':
normalized_formats += [user_input.split('-')[0].upper()+"-"+user_input.split('-')[1]]
normalized_formats.append(user_input.split('-')[0].upper()+"-"+user_input.split('-')[1])
else:
normalized_formats += [user_input]
normalized_formats.append(user_input)

self["FORMAT"] = ",".join(normalized_formats)

Expand Down

0 comments on commit 2c85a86

Please sign in to comment.