Skip to content

Commit

Permalink
18495 - Add Missing Memorandum PDF to Emailer (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio authored Dec 14, 2023
1 parent e050a0f commit e1a236f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion legal-api/src/legal_api/core/filing_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def is_special_resolution_correction_by_filing_json(filing: Dict):
# Note this relies on the filing data once. This is acceptable inside of the filer (which runs once)
# and emailer (runs on PAID which is before the filer and runs on COMPLETED).
# For filing data that persists in the database, attempt to use the meta_data instead.
sr_correction_keys = ['rulesInResolution', 'resolution', 'rulesFileKey', 'rulesMemorandumKey',
sr_correction_keys = ['rulesInResolution', 'resolution', 'rulesFileKey', 'memorandumFileKey',
'memorandumInResolution', 'cooperativeAssociationType']
for key in sr_correction_keys:
if key in filing.get('correction'):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _get_pdfs(
attach_order += 1
elif is_cp_special_resolution:
rules_changed = bool(filing.filing_json['filing']['correction'].get('rulesFileKey'))
memorandum_changed = bool(filing.filing_json['filing']['correction'].get('rulesMemorandumKey'))
memorandum_changed = bool(filing.filing_json['filing']['correction'].get('memorandumFileKey'))
pdfs = get_completed_pdfs(token, business, filing, name_changed,
rules_changed=rules_changed, memorandum_changed=memorandum_changed)
return pdfs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{% if filing['rulesFileKey'] %}
<li>Certified Rules</li>
{% endif %}
{% if filing['rulesMemorandumKey'] %}
{% if filing['memorandumFileKey'] %}
<li>Certified Memorandum</li>
{% endif %}
</ul>
Expand Down

0 comments on commit e1a236f

Please sign in to comment.