From f2e584d364fa9794d509dcb30512a1342fd4b817 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 31 Dec 2017 12:37:53 +0100 Subject: fixed 'add' command --- lib/commands.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/commands.py') diff --git a/lib/commands.py b/lib/commands.py index 3df279c..b0d07a3 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -89,9 +89,6 @@ class Commands(object): try: with open(co['path'], 'ab+') as fout: - if fout.readline().decode('utf-8') == '': - fout.write(('\n').encode('utf-8')) - fout.write((msg + '\n').encode('utf-8')) print('Ok') -- cgit v1.2.3-18-g5258