phaethon-order commited on
Commit
cef464e
·
1 Parent(s): 83e16eb

Remove redundant list check for party_roles in add_document function

Browse files
Files changed (1) hide show
  1. infrastructure/database.py +0 -2
infrastructure/database.py CHANGED
@@ -397,8 +397,6 @@ def add_document(*, sha256, title=None, source_path=None, doc_type=None, jurisdi
397
  party_roles = ", ".join(party_roles)
398
  if governing_law and isinstance(governing_law, list):
399
  governing_law = ", ".join(governing_law)
400
- if party_roles and isinstance(party_roles, list):
401
- party_roles = ", ".join(party_roles)
402
  if effective_date and isinstance(effective_date, datetime):
403
  effective_date_str = str(effective_date.isoformat())
404
  else:
 
397
  party_roles = ", ".join(party_roles)
398
  if governing_law and isinstance(governing_law, list):
399
  governing_law = ", ".join(governing_law)
 
 
400
  if effective_date and isinstance(effective_date, datetime):
401
  effective_date_str = str(effective_date.isoformat())
402
  else: