papis: Small variable fix to papis-reload script
This commit is contained in:
parent
a7b4e16f66
commit
38c85d6de0
2 changed files with 5 additions and 2 deletions
3
writing/.config/papis/config.py
Normal file
3
writing/.config/papis/config.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
# from papis import config
|
||||
#
|
||||
# config.set("ref-format", f"{doc[author].split()[0] if 'author' in doc else 'Unknown'}{doc[year] if 'year' in doc else '0000'}")
|
|
@ -13,7 +13,7 @@ import papis.api
|
|||
from argparse import ArgumentParser
|
||||
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument(
|
||||
_ = parser.add_argument(
|
||||
"--all", "-a", help="reload all libraries not just current", action="store_true"
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
@ -25,4 +25,4 @@ else:
|
|||
|
||||
for lib in libs:
|
||||
papis.api.clear_lib_cache(lib)
|
||||
papis.api.get_all_documents_in_lib()
|
||||
_ = papis.api.get_all_documents_in_lib()
|
||||
|
|
Loading…
Reference in a new issue