summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-02-12 09:42:31 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-02-12 09:43:10 +0100
commit93c0c15812fde8c113b4141004de130a5ff328ad (patch)
treea0da73d4b0d561ea3df571743c8a7416586a0d10
parent02ea5f0f21809faf7c5ee99f79c5ba684ff8fba5 (diff)
Fix calling .auto() before editing an entry. refs: #8
-rw-r--r--CHANGELOG.rst3
-rw-r--r--lesana/command.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 3d29b90..21782eb 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,6 +5,9 @@
Unreleased
==========
+* Fixes running on an environment where EDITOR is not set. #7
+* Fixes editing an entry. #8
+
0.8.0
=====
diff --git a/lesana/command.py b/lesana/command.py
index 9c27eca..2ef52e7 100644
--- a/lesana/command.py
+++ b/lesana/command.py
@@ -161,7 +161,7 @@ class Edit(Command):
)
entry = entries[0]
# update the entry before editing it
- entry.update()
+ entry.auto()
collection.save_entries([entry])
# and then edit the updated file
filepath = os.path.join(collection.itemdir, entry.fname)