Skip to content

Commit

Permalink
Updating comment service to remove metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
VineetBala-AOT committed Jan 8, 2024
1 parent adc2643 commit 0db947d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions met-api/src/met_api/services/comment_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ def export_comments_to_spread_sheet_staff(cls, survey_id):
"""Export comments to spread sheet."""
survey = SurveyModel.find_by_id(survey_id)
comments = Comment.get_comments_by_survey_id(survey_id)
metadata_model = EngagementMetadataModel.find_by_id(survey.engagement_id)
project_name = metadata_model.project_metadata.get('project_name') if metadata_model else None
# TODO: Uncomment depending on future metadata work
# metadata_model = EngagementMetadataModel.find_by_id(survey.engagement_id)

titles = cls.get_titles(survey)
data_rows = cls.get_data_rows(titles, comments, project_name)
data_rows = cls.get_data_rows(titles, comments)

formatted_comments = {
'titles': titles,
Expand Down

0 comments on commit 0db947d

Please sign in to comment.