Skip to content

Commit

Permalink
17171 compare sorted name
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot committed Aug 4, 2023
1 parent 9961523 commit bd52975
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 bd52975

Please sign in to comment.