From a72a3068762b295a464ab1ac6e612b83d768c08b Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 24 Dec 2019 10:40:31 +0900 Subject: chatlog: using big table To be more readable, chatlog is now using big table for each year Signed-off-by: Kuninori Morimoto --- scripts/chatlog.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'scripts/chatlog.py') diff --git a/scripts/chatlog.py b/scripts/chatlog.py index 9a97880..4e228ab 100755 --- a/scripts/chatlog.py +++ b/scripts/chatlog.py @@ -23,10 +23,12 @@ class log(base.base): #-------------------- def show(self): print("h1. Chat Log\n") + print("") current="" year="" dir = "wiki/Chat_log" + tr = 0 files = glob.glob("{}/{}/*-chatlog".format(self.top(), dir)) files.sort(reverse=True) @@ -37,9 +39,18 @@ class log(base.base): y = date[0:4] if (year != y): + if (year != ""): + print("\n", end="") + + if (tr % 6 == 0): + if (year != ""): + print("") + print("") + print("
\n") year = y - print("\nh2. {}\n".format(year)) - print("|_. year|_. core|_. io|_. mm|") + tr += 1 + print("h2. {}\n".format(year)) + print("|_. date|_. core|_. io|_. mm|") if (date != current): current = date @@ -51,6 +62,8 @@ class log(base.base): else ""), end="") print("|") + print("\n
") + #==================================== # # As command -- cgit v1.2.3