diff options
author | michaelplews <michael.plews@gmail.com> | 2018-06-22 13:06:08 -0500 |
---|---|---|
committer | Alejandro Gallo <aamsgallo@gmail.com> | 2018-07-10 00:24:23 +0200 |
commit | 327594df4a102841d541a9bf0938b41a4989717d (patch) | |
tree | c0fbdec063ef400bc4e8f2e46bf3ab8ea98ae48f | |
parent | 83340c5706b66ed884d5b4d861d64f0ad14f1004 (diff) |
Force documents to keep their ref tags during papis update. Closes #80
-rw-r--r-- | papis/commands/update.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/papis/commands/update.py b/papis/commands/update.py index b0d2ec8a..f84b6d03 100644 --- a/papis/commands/update.py +++ b/papis/commands/update.py @@ -69,6 +69,9 @@ def run( logger.debug("Try using doi %s" % from_doi) data.update(papis.utils.doi_to_data(from_doi)) + # Keep the ref the same, otherwise issues can be caused when + # writing LaTeX documents and all the ref's change + data['ref'] = document['ref'] document.update(data, force, interactive) document.save() papis.database.get().update(document) |