Skip to content

Commit

Permalink
17171 compare sorted name (#2171)
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot authored Aug 8, 2023
1 parent 9961523 commit 6e4130f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion legal-api/src/legal_api/reports/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,9 @@ def _format_name_translations_data(self, filing, prev_completed_filing: Filing):
versioned_name_translations = VersionedBusinessDetailsService.\
get_name_translations_revision(prev_completed_filing.transaction_id, self._business.id)
filing['previousNameTranslations'] = versioned_name_translations
filing['nameTranslationsChange'] = sorted(filing['listOfTranslations']) != sorted(versioned_name_translations)
filing['nameTranslationsChange'] = \
sorted([translation['name'] for translation in filing['listOfTranslations']]) != \
sorted([translation['name'] for translation in versioned_name_translations])

def _format_office_data(self, filing, prev_completed_filing: Filing):
filing['offices'] = {}
Expand Down

0 comments on commit 6e4130f

Please sign in to comment.