Skip to content

Commit

Permalink
Updated proponent template (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetBala-AOT authored Dec 7, 2023
1 parent 081e792 commit 0920cfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Binary file not shown.
4 changes: 1 addition & 3 deletions met-api/src/met_api/services/comment_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,7 @@ def format_comments(cls, comments):
comments_by_label[label].append({'text': text, 'submission_id': submission_id})

# Create a list of titles with label information in order of appearance
titles = [{'label': title} for title in unique_titles for _ in range(2)]
# Insert "Proponent Answer" after each label in titles
titles = [{'label': 'Proponent Answer'} if i % 2 else title for i, title in enumerate(titles)]
titles = [{'label': title, 'proponent_answers': 'Proponent Answer'} for title in unique_titles]

# Create a list of comments organized by label order
formatted_comments = []
Expand Down

0 comments on commit 0920cfb

Please sign in to comment.