plint

French poetry validator
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 521785e3cfa4c61ad26ce87d788f647dcf080314
parent 5d278d813449aeb5f0eef08a000a9db4c6e8f978
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Mon, 18 Feb 2013 22:29:53 +0100

fix bug in contexts

Diffstat:
template.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/template.py b/template.py @@ -138,7 +138,7 @@ class Template: if len(possible) == 1: for i, p in enumerate(possible[0]): if ('weight' in p.keys() and len(p['weights']) > 1 - and p['weights'][0] > 0): + and p['weight'] > 0): print(str(p['weight']) + ' ' + ' '.join(make_query(possible[0], i)), file=ofile)