diff options
author | H. P. <harald.p.@xmart.de> | 2018-09-28 15:08:27 +0200 |
---|---|---|
committer | H. P. <harald.p.@xmart.de> | 2018-09-28 15:08:27 +0200 |
commit | 89f283e04d2535173b8653acf59ba94a1bd165b4 (patch) | |
tree | 095079b76da15acae0407eaa7275d658d9d9b485 /refresh | |
parent | 7bb03c0b6d2767733c0c448da1ba08ded1c16aa1 (diff) | |
download | timewarrior-holidays-89f283e04d2535173b8653acf59ba94a1bd165b4.tar.bz2 |
bugfix: reference to args after parsing, removal of arbitrary variable now
Diffstat (limited to 'refresh')
-rwxr-xr-x | refresh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -116,11 +116,9 @@ def main(args): if args.year != None and args.year != []: year = args.year else: - now = datetime.now() year = [datetime.now().year] - year = unicode(year) - for i in args.locale: - for j in args.year: + for i in locode: + for j in year: sys.stdout.write("Fetching holiday data from holidata.net... (%s, %s)" % (i, j)) sys.stdout.flush() lines = hfetch(unicode(i), unicode(j)) |