Skip to content

Commit

Permalink
Merge pull request #68 from uktrade/Fix-retrieving-mail-instance
Browse files Browse the repository at this point in the history
LTD-787: Fix retrieving the mail instance of licence reply correctly
  • Loading branch information
saruniitr authored May 26, 2021
2 parents 043223e + 3719cc5 commit 3b20d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mail/libraries/data_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_mail_instance(extract_type, run_number) -> Mail or None:
logging.info("Licence update reply has already been processed")
return
return find_mail_of(
[ExtractTypeEnum.LICENCE_DATA, ExtractTypeEnum.LICENCE_DATA], ReceptionStatusEnum.REPLY_PENDING
[ExtractTypeEnum.LICENCE_DATA, ExtractTypeEnum.LICENCE_REPLY], ReceptionStatusEnum.REPLY_PENDING
)
elif extract_type == ExtractTypeEnum.USAGE_REPLY:
last_email = UsageData.objects.filter(spire_run_number=run_number).last()
Expand Down

0 comments on commit 3b20d07

Please sign in to comment.