From 7d67ede1ae68fccb2e1c8f48961dcb17f1571bf5 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Sat, 27 Nov 2021 14:45:08 +0300 Subject: [PATCH] reformat printing --- antp/ankiconnect.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/antp/ankiconnect.py b/antp/ankiconnect.py index 7133997..b018387 100644 --- a/antp/ankiconnect.py +++ b/antp/ankiconnect.py @@ -23,8 +23,10 @@ def invoke(action, **params): def main(): - result = invoke('deckNames') - print('got list of decks: {}'.format(result)) + decks = invoke('deckNames') + print("List of decks:") + for deck in decks: + print(deck) if __name__ == '__main__':