From 4de6d51ea36af8dd8ee5a3382d2c684b495a654f Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Wed, 15 Feb 2023 14:30:23 +0100 Subject: [PATCH] List items to add to Sidebar with wip/publish --- src/var/lib/tyto/program/html.py | 3 +++ src/var/lib/tyto/program/logs.py | 1 + 2 files changed, 4 insertions(+) diff --git a/src/var/lib/tyto/program/html.py b/src/var/lib/tyto/program/html.py index 30f006b..f9bd9f9 100644 --- a/src/var/lib/tyto/program/html.py +++ b/src/var/lib/tyto/program/html.py @@ -314,6 +314,9 @@ def create_sidebar(option): ) continue + # Show item to add + logs.out("35", '"%s": %s'%(title, line), False) + # Create HTML list for this article link_title = '%s [@%s]'%(about, author) sidebar_list = sidebar_list + \ diff --git a/src/var/lib/tyto/program/logs.py b/src/var/lib/tyto/program/logs.py index f29befa..1b00544 100644 --- a/src/var/lib/tyto/program/logs.py +++ b/src/var/lib/tyto/program/logs.py @@ -57,6 +57,7 @@ def out(nbr, value, out): '31' : ':? Not included. %sMax items reached%s %s'%(CY, CS, value), '33' : ':D %sCreated file%s: %s'%(CG, CS, value), '34' : ':D Publish %sfile change%s %s'%(CG, CS, value), + '35' : ':D %sAdd item%s %s'%(CG, CS, value), '40' : ':/ %sInactive%s domain "%s"'%(CY, CS, value), '41' : ':? %sIncomplete%s domain "%s"'%(CR, CS, value), '42' : ':D %sActive%s domain "%s"'%(CG, CS, value),