piknik

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

commit 9d2cb0e5d2f533e6432eb9da3b8a4ff7e6df15e4
parent 0d0438e0d6b8aadb5a8915781fc76eb9a7123b36
Author: lash <dev@holbrook.no>
Date:   Wed, 19 Apr 2023 09:29:05 +0100

Fix fail when generating to outdir with show cli tool

Diffstat:
MCHANGELOG | 2++
Mpiknik/cli/show.py | 7+++----
Msetup.cfg | 2+-
3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.3.1 + * Fix fail when generating html to outfile with show cli - 0.3.0 * Implement cli as subcommands - 0.2.3 diff --git a/piknik/cli/show.py b/piknik/cli/show.py @@ -16,10 +16,9 @@ logg = logging.getLogger(__name__) -def set_accumulator(ctx, issue_id=None): +def set_accumulator(ctx, m, issue_id=None): global accumulator_f global accumulator - global m if ctx.files_dir != None: fb = None if issue_id == None: @@ -81,13 +80,13 @@ def main(): issues.append(ctx.issue_id) if ctx.issue_id == None: - accumulator = set_accumulator(ctx) + accumulator = set_accumulator(ctx, m) renderer = m.Renderer(ctx.basket, accumulator=accumulator) renderer.apply() issues = reset_accumulator() for issue_id in issues: - accumulator = set_accumulator(ctx, issue_id=issue_id) + accumulator = set_accumulator(ctx, m, issue_id=issue_id) issue = ctx.basket.get(issue_id) tags = ctx.basket.tags(issue_id) state = ctx.basket.get_state(issue_id) diff --git a/setup.cfg b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = piknik -version = 0.3.0 +version = 0.3.1 description = CLI issue tracker author = Louis Holbrook author_email = dev@holbrook.no