From 920fa648837152255c0937b03ec373c13830da42 Mon Sep 17 00:00:00 2001 From: slinderud Date: Tue, 3 Dec 2019 20:23:36 +0100 Subject: Template: bugfixes on templating.py. Added test template that uses API and created a readme --- templating/templating.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templating/templating.py') diff --git a/templating/templating.py b/templating/templating.py index 140745f..603b370 100755 --- a/templating/templating.py +++ b/templating/templating.py @@ -88,12 +88,13 @@ parser.add_argument("-h", "--host", type=str, default="127.0.0.1", help="host ad parser.add_argument("-p", "--port", type=int, default=8080, help="host port") parser.add_argument("-d", "--debug", action="store_true", help="enable debug mode") parser.add_argument("-s", "--server", type=str, default="http://localhost:80", help="gondul server address") -parser.add_argument("-x", "--timeout", type=int, default=1, help="gondul server timeout") +parser.add_argument("-x", "--timeout", type=int, default=2, help="gondul server timeout") args = parser.parse_args() env.loader.searchpath = args.templates if not sys.argv[1:]: parser.print_help() + sys.exit(1) app.run(host=args.host, port=args.port, debug=args.debug) -- cgit v1.2.3