Skip to content

Commit

Permalink
fix(config): drop config before re-importing
Browse files Browse the repository at this point in the history
  • Loading branch information
jghauser committed Jun 2, 2024
1 parent 76bdb14 commit 3814a6d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/papis/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,8 @@ function M:update(opts)
log.info("Papis.nvim configuration not setup, importing values from Papis now")
local testing_session = self["enable_modules"]["testing"]
local papis_py_conf_new = self:get_papis_py_conf(testing_session)
db:clean_update("config", { id = 1 }, papis_py_conf_new)
-- for k, v in pairs(papis_py_conf_new) do
-- db.config:update({ id = 1 }, { [k] = v })
-- end
db.config:drop()
db.config:update({ id = 1 }, papis_py_conf_new)
end
end

Expand Down

0 comments on commit 3814a6d

Please sign in to comment.