Changeset - f56d89462a86
[Not reviewed]
0 5 0
Brett Smith - 4 years ago 2020-07-29 21:30:07
brettcsmith@brettcsmith.org
reports: Add common properties to all ODS reports.
5 files changed with 8 insertions and 2 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/reports/accrual.py
Show inline comments
...
 
@@ -758,4 +758,4 @@ def main(arglist: Optional[Sequence[str]]=None,
 
        else:
 
            now = datetime.datetime.now()
 
            if args.output_file is None:
 
                now = datetime.datetime.now()
 
                out_dir_path = config.repository_path() or Path()
...
 
@@ -765,2 +765,3 @@ def main(arglist: Optional[Sequence[str]]=None,
 
            report = AgingReport(rt_wrapper, out_bin)
 
            report.ods.set_common_properties(config.books_repo())
 
    elif args.report_type is ReportType.OUTGOING:
conservancy_beancount/reports/fund.py
Show inline comments
...
 
@@ -396,2 +396,3 @@ def main(arglist: Optional[Sequence[str]]=None,
 
        ods_report = ODSReport(args.start_date, args.stop_date)
 
        ods_report.set_common_properties(config.books_repo())
 
        ods_report.write(fund_map.items())
conservancy_beancount/reports/ledger.py
Show inline comments
...
 
@@ -811,2 +811,3 @@ def main(arglist: Optional[Sequence[str]]=None,
 
        return 2
 
    report.set_common_properties(config.books_repo())
 
    report.write(postings)
setup.py
Show inline comments
...
 
@@ -7,3 +7,3 @@ setup(
 
    description="Plugin, library, and reports for reading Conservancy's books",
 
    version='1.6.2',
 
    version='1.6.3',
 
    author='Software Freedom Conservancy',
tests/testutil.py
Show inline comments
...
 
@@ -273,2 +273,5 @@ class TestConfig:
 

	
 
    def books_repo(self):
 
        return None
 

	
 
    def config_file_path(self):
0 comments (0 inline, 0 general)