accrual: Aging report is written to repository path by default.

Opening it here is necessary for repository links to work anyway.
This commit is contained in:
Brett Smith 2020-06-12 15:56:29 -04:00
parent d6559b572f
commit 44946a061d
2 changed files with 3 additions and 2 deletions

View file

@ -724,7 +724,8 @@ def main(arglist: Optional[Sequence[str]]=None,
else:
now = datetime.datetime.now()
if args.output_file is None:
args.output_file = Path(now.strftime('AgingReport_%Y-%m-%d_%H:%M.ods'))
out_dir_path = config.repository_path() or Path()
args.output_file = out_dir_path / now.strftime('AgingReport_%Y-%m-%d_%H:%M.ods')
logger.info("Writing report to %s", args.output_file)
out_bin = cliutil.bytes_output(args.output_file, stdout)
report = AgingReport(rt_wrapper, out_bin)

View file

@ -5,7 +5,7 @@ from setuptools import setup
setup(
name='conservancy_beancount',
description="Plugin, library, and reports for reading Conservancy's books",
version='1.1.11',
version='1.1.12',
author='Software Freedom Conservancy',
author_email='info@sfconservancy.org',
license='GNU AGPLv3+',