From a748cff082353e739df89cb47e797069cf13ee91 Mon Sep 17 00:00:00 2001 From: Martin Puppe Date: Tue, 31 Oct 2017 18:02:27 +0100 Subject: [PATCH] Rename variable --- Uberspace.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Uberspace.lua b/Uberspace.lua index 4ab4e94..099c48d 100644 --- a/Uberspace.lua +++ b/Uberspace.lua @@ -74,18 +74,18 @@ function RefreshAccount (account, since) local children = row:children() local pattern = '(%d%d)%.(%d%d)%.(%d%d%d%d)' local day, month, year = children:get(1):text():match(pattern) - local valueTime = os.time{day=day, month=month, year=year} + local bookingDate = os.time{day=day, month=month, year=year} - if valueTime < since then + if bookingDate < since then print('Stopping parsing because transaction is too old.') - print('Date of transaction: ' .. os.date('%c', valueTime)) + print('Date of transaction: ' .. os.date('%c', bookingDate)) print('since: ' .. os.date('%c', since)) break end local amount = ParseAmount(children:get(3):text()) table.insert(transactions, { - bookingDate = valueTime, + bookingDate = bookingDate, amount = amount }) end