diff --git a/queue_services/entity-emailer/q_cli.py b/queue_services/entity-emailer/q_cli.py index 356e347624..74bf30802d 100755 --- a/queue_services/entity-emailer/q_cli.py +++ b/queue_services/entity-emailer/q_cli.py @@ -38,6 +38,7 @@ affiliation_type: Final = 'bc.registry.affiliation' +dissolution_type: Final = 'bc.registry.dissolution' async def run(loop, email_info): # pylint: disable=too-many-locals @@ -88,7 +89,7 @@ def subscription_options(): functools.partial(signal_handler, sig_loop=loop, sig_nc=nc, task=close) ) - if email_info['type'] == affiliation_type: + if email_info['type'] in [affiliation_type, dissolution_type]: payload = email_info else: payload = {'email': email_info} @@ -104,11 +105,11 @@ def subscription_options(): if __name__ == '__main__': try: - opts, args = getopt.getopt(sys.argv[1:], 'f:t:o:i:', ['fid=', 'etype=', 'option=', 'identifier=']) + opts, args = getopt.getopt(sys.argv[1:], 'f:t:o:i:n:', ['fid=', 'etype=', 'option=', 'identifier=', 'name=']) except getopt.GetoptError: - print('q_cli.py -f -t -o