From a739d5aed2c786541aff9981cd8d190f3b2ab6e9 Mon Sep 17 00:00:00 2001 From: dece Date: Tue, 17 Aug 2021 19:04:59 +0200 Subject: [PATCH] toki: fix columns for new nimi ale pona Also drop support for Python 3.7 now that Debian 11 is out! --- toki.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/toki.py b/toki.py index ecfd416..e605647 100755 --- a/toki.py +++ b/toki.py @@ -64,10 +64,10 @@ def print_row(row): if etymology: details += ": " + etymology print(f" {Style.DIM}{details}{Style.RESET_ALL}") - if row['tags']: - print(f" {Style.DIM}{row['tags']}{Style.RESET_ALL}") - if row['']: # bogus second tag columns - print(f" {Style.DIM}{row['']}{Style.RESET_ALL}") + if (tags := row['tags']): + print(f" {Style.DIM}tags: {tags}{Style.RESET_ALL}") + if (origin := row['creator(s)']): + print(f" {Style.DIM}origin: {origin}{Style.RESET_ALL}") if __name__ == "__main__": main()