feedwarrior

Slim, portable tooling for creating and distributing decentralized append logs
git clone git://git.defalsify.org/logwarrior.git
Log | Files | Refs | README | LICENSE

commit 9e3148851aadd782d327676788d4a5086bc63214
parent 7e490dbd930be4c573317e2c9d9b2c1d0ef2466d
Author: nolash <dev@holbrook.no>
Date:   Thu, 17 Sep 2020 19:12:57 +0200

Fix sort on show

Diffstat:
MCHANGELOG | 2++
MROADMAP | 1+
MTODO | 1-
MVERSION | 2+-
Mfeedwarrior/cmd/show.py | 2+-
Mfeedwarrior/feed.py | 2++
Msetup.py | 2+-
7 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +* 0.5.1 + - Fix sort on date * 0.5.0 - Add taskwarrior uuid lookup and id to uuid resolve - Abort add on empty input diff --git a/ROADMAP b/ROADMAP @@ -1 +1,2 @@ - Sign entries with PGP +- filter entries by task diff --git a/TODO b/TODO @@ -1,3 +1,2 @@ - add attachments to add command - add default editor autodetect for add command -- entries returned out of order diff --git a/VERSION b/VERSION @@ -1 +1 @@ -0.5.0 +0.5.1 diff --git a/feedwarrior/cmd/show.py b/feedwarrior/cmd/show.py @@ -55,7 +55,7 @@ def execute(config, feed, args): sys.stdout.write('{} - {}\n'.format(ts, j['uuid'])) sys.stdout.write('{}'.format(body)) for a in attachments: - sys.stdout.write('+ {}'.format(a)) + sys.stdout.write('+ {}\n'.format(a)) i += 1 sys.stdout.flush() diff --git a/feedwarrior/feed.py b/feedwarrior/feed.py @@ -65,6 +65,7 @@ class feed: return o + # TODO: use index instead def _sort_entries(self): logg.debug('entries for {} {}'.format(self.uuid, self.entries)) new_entries = [] @@ -81,6 +82,7 @@ class feed: new_entries.append('_'.join([ts, e])) self.entries = [] + new_entries.sort() for ne in new_entries: e = ne.split('_', maxsplit=1) self.entries.append(e[1]) diff --git a/setup.py b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='feedwarrior', - version='0.5.0', + version='0.5.1', description='feeds, warrior style', author='Louis Holbrook', author_email='dev@holbrook.no',