diff options
-rwxr-xr-x | scripts/chatlog.py | 17 |
1 files changed, 15 insertions, 2 deletions
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("<table>") 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</td>", end="") + + if (tr % 6 == 0): + if (year != ""): + print("</tr>") + print("<tr>") + print("<td valign=\"top\">\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</td></tr></table>") + #==================================== # # As command |