Skip to content

Commit

Permalink
Clean comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dglemos committed Feb 20, 2025
1 parent 38bb89a commit 382546b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gene2phenotype_project/gene2phenotype_app/views/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,11 @@ def PanelDownload(request, name):
).select_related('lgd__id').values('lgd__id', 'comment')

for data in queryset_lgd_comment:
comment = data['comment'].strip()
if data['lgd__id'] not in lgd_comments:
lgd_comments[data['lgd__id']] = [data['comment']]
lgd_comments[data['lgd__id']] = [comment]
else:
lgd_comments[data['lgd__id']].append(data['comment'])
lgd_comments[data['lgd__id']].append(comment)

writer = csv.writer(response)
# Write file header
Expand Down

0 comments on commit 382546b

Please sign in to comment.