From 7a434b9422b768de68d3a9b802de2174aee1ea54 Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Wed, 12 Feb 2020 14:27:41 +0100 Subject: [PATCH] fix args --- src/tww/tokenizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tww/tokenizer.py b/src/tww/tokenizer.py index 84c6e7a..7435d4f 100644 --- a/src/tww/tokenizer.py +++ b/src/tww/tokenizer.py @@ -130,7 +130,7 @@ h_tz_offset = 'tz->tz_offset' h_time_in = 'dt->hh:mm' h_translation = 'dst_dt->iso8601_full' h_default_dt = 'dt->iso8601_full' -h_default_td = 'diff->duration_iso8601' +h_default_td = 'timedelta->diff->duration_iso8601' regex_handlers = [ (r_time_in_epoch_s_now, handler_time_now_local, QUERY_TYPE_DT, h_unix_s), @@ -316,7 +316,7 @@ def main(args): global custom_locale custom_locale = resolve_locale(args.locale) query = ' '.join(args.query) - query = "time in sofia" + # query = "tz in sofia" result = resolve_query(query) if args.full: pretty_print_dict(result)