toki: fix columns for new nimi ale pona
Also drop support for Python 3.7 now that Debian 11 is out!
This commit is contained in:
parent
f8174c4a36
commit
a739d5aed2
8
toki.py
8
toki.py
|
@ -64,10 +64,10 @@ def print_row(row):
|
||||||
if etymology:
|
if etymology:
|
||||||
details += ": " + etymology
|
details += ": " + etymology
|
||||||
print(f" {Style.DIM}{details}{Style.RESET_ALL}")
|
print(f" {Style.DIM}{details}{Style.RESET_ALL}")
|
||||||
if row['tags']:
|
if (tags := row['tags']):
|
||||||
print(f" {Style.DIM}{row['tags']}{Style.RESET_ALL}")
|
print(f" {Style.DIM}tags: {tags}{Style.RESET_ALL}")
|
||||||
if row['']: # bogus second tag columns
|
if (origin := row['creator(s)']):
|
||||||
print(f" {Style.DIM}{row['']}{Style.RESET_ALL}")
|
print(f" {Style.DIM}origin: {origin}{Style.RESET_ALL}")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue