diff options
-rwxr-xr-x | abrechenbarkeit.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index fefbaa4..032e10d 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -858,15 +858,15 @@ local function r_products_post() for a_price, a_user, a_name in read_products() do if user == a_user and not wrote then wrote = true - products:write(string.format("%d,%s,%s\n", price, user, name)) + new_products:write(string.format("%d,%s,%s\n", price, user, name)) end new_products:write(string.format("%d,%s,%s\n", a_price, a_user, a_name)) end - -- append if not wrote already - if not wrote then - products:write(string.format("%d,%s,%s\n", price, user, name)) + -- append if not wrote already + if not wrote then + new_products:write(string.format("%d,%s,%s\n", price, user, name)) end new_products:flush() |