summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-04-02 23:25:09 +0100
committerLars Wirzenius <liw@liw.fi>2012-04-02 23:25:09 +0100
commit1259b1e2faffedf8bc0e1e53ec1decf776e829e1 (patch)
treef2698b7fc26763958c67fa4e62e00cdab19354c6
parent431757b3c8fc9c80e68c5d03ceae493ed338811a (diff)
parentbb205e79db8ad1571a66837f300d7419888f80fb (diff)
downloadliw-automation-1259b1e2faffedf8bc0e1e53ec1decf776e829e1.tar.gz
Fix journal-note list
-rwxr-xr-xscripts/journal-note1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/journal-note b/scripts/journal-note
index 013f4c9..6efd8c2 100755
--- a/scripts/journal-note
+++ b/scripts/journal-note
@@ -104,6 +104,7 @@ class App(object):
yield name[:-len('.mdwn')], name
def list_entries(self, args, opts):
+ drafts = self.drafts(opts)
for draft_id, name in self.find_drafts(opts):
if name.endswith('.mdwn'):
f = open(os.path.join(drafts, name))