papis: Small variable fix to papis-reload script

This commit is contained in:
Marty Oehme 2024-06-14 21:54:48 +02:00
parent a7b4e16f66
commit 38c85d6de0
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 5 additions and 2 deletions

View 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'}")

View file

@ -13,7 +13,7 @@ import papis.api
from argparse import ArgumentParser from argparse import ArgumentParser
parser = ArgumentParser() parser = ArgumentParser()
parser.add_argument( _ = parser.add_argument(
"--all", "-a", help="reload all libraries not just current", action="store_true" "--all", "-a", help="reload all libraries not just current", action="store_true"
) )
args = parser.parse_args() args = parser.parse_args()
@ -25,4 +25,4 @@ else:
for lib in libs: for lib in libs:
papis.api.clear_lib_cache(lib) papis.api.clear_lib_cache(lib)
papis.api.get_all_documents_in_lib() _ = papis.api.get_all_documents_in_lib()