tarot

A Tarot engine
git clone https://git.parazyd.org/tarot
Log | Files | Refs | README | LICENSE

commit 93bb6824906676bac8af74d3051a9ca00feb74a0
parent abef80a993a13f5de9591238dbc4d0594fd5a25d
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 29 Nov 2019 12:20:53 +0100

Default to HTML output.

Diffstat:
Mtarot.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tarot.py b/tarot.py @@ -30,7 +30,7 @@ def draw_random_card(deck): return deck[randint(0, len(deck)-1)] -def main(out='text'): +def main(out='html'): reader = readers[randint(0, len(readers)-1)] drawn = [] index = 0 @@ -85,7 +85,7 @@ def main(out='text'): if __name__ == '__main__': - if len(argv) > 1 and argv[1] == '--html': - main(out='html') + if len(argv) > 1 and argv[1] == '--text': + main(out='text') else: - main() + main(out='html')