git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-09-28 15:08:27 +0200
committerHarald Pfeiffer <harald.pfeiffer _ xmart.de> 2018-09-28 15:08:27 +0200
commit89f283e04d2535173b8653acf59ba94a1bd165b4 (patch)
tree095079b76da15acae0407eaa7275d658d9d9b485
parent7bb03c0b6d2767733c0c448da1ba08ded1c16aa1 (diff)
downloadtimewarrior-holidays-89f283e04d2535173b8653acf59ba94a1bd165b4.tar.bz2
bugfix: reference to args after parsing, removal of arbitrary variable now
-rwxr-xr-xrefresh6
1 files changed, 2 insertions, 4 deletions
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))