From 89f283e04d2535173b8653acf59ba94a1bd165b4 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Fri, 28 Sep 2018 15:08:27 +0200 Subject: bugfix: reference to args after parsing, removal of arbitrary variable now --- refresh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'refresh') diff --git a/refresh b/refresh index f6b5cc4..7f372ef 100755 --- a/refresh +++ b/refresh @@ -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)) -- cgit v1.2.3