"""Trigger attachment generation.""" import logging import sys sys.path.append('') logging.basicConfig(level=logging.INFO) from scripts.utils import get_env # noqa: E402 from moneyhub.connectors.ows_moneyhub import OwsMoneyhub # noqa: E402 if __name__ == '__main__': statement_period_id = int(get_env('STATEMENT_PERIOD_ID', True)) account_id = get_env('ACCOUNT_ID') if account_id: account_id = int(account_id) response = OwsMoneyhub.trigger_attachment_generation(statement_period_id, account_id) logging.info(response)