From bb6425c27f3ebc3b27887120766ebab2e40b83da Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 19 Jul 2023 12:10:51 +0200 Subject: [PATCH] Update instrument export command to include more html tags --- .../core/management/commands/export_instruments.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/core/management/commands/export_instruments.py b/server/core/management/commands/export_instruments.py index e8485fe4..4b5c2d6a 100644 --- a/server/core/management/commands/export_instruments.py +++ b/server/core/management/commands/export_instruments.py @@ -29,9 +29,19 @@ class Command(BaseCommand): def handle(self, *args, **options): # todo: only published after X: Page.last_published_at > X - print("") + print( + """ + + + + + + + """ + ) for i in BasicKnowledge.objects.live().filter(slug__in=options["slugs"]): print(f"

{i.title}

") + print(f"

{i.intro}

") for c in i.contents: action = actions.get( c.block_type, lambda c: print(f"==={c.block_type}===")