diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 14:33:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 18:25:58 -0700 |
commit | b4d0bfb643842e6070a4ee36cfc52e2292e3b5ba (patch) | |
tree | 1988743c61f5c053148d66f6939ff32f398ae06e /fatcat_scholar/worker.py | |
parent | 956e64f47f7d47f2539cd6575c25ec0b6a33e567 (diff) | |
download | fatcat-scholar-b4d0bfb643842e6070a4ee36cfc52e2292e3b5ba.tar.gz fatcat-scholar-b4d0bfb643842e6070a4ee36cfc52e2292e3b5ba.zip |
make fmt (black 21.9b0)
Diffstat (limited to 'fatcat_scholar/worker.py')
-rw-r--r-- | fatcat_scholar/worker.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fatcat_scholar/worker.py b/fatcat_scholar/worker.py index b836d7c..ef1a8c7 100644 --- a/fatcat_scholar/worker.py +++ b/fatcat_scholar/worker.py @@ -47,7 +47,8 @@ class FetchDocsWorker(KafkaWorker): key = msg["key"] if key.startswith("work_") and msg.get("work_ident"): stubs = self.fatcat_api.get_work_releases( - ident=msg["work_ident"], hide="abstracts,references", + ident=msg["work_ident"], + hide="abstracts,references", ) full_releases = [] for r in stubs: @@ -171,10 +172,14 @@ def main() -> None: type=str, ) - sub = subparsers.add_parser("fetch-docs-worker",) + sub = subparsers.add_parser( + "fetch-docs-worker", + ) sub.set_defaults(worker="fetch-docs-worker") - sub = subparsers.add_parser("index-docs-worker",) + sub = subparsers.add_parser( + "index-docs-worker", + ) sub.set_defaults(worker="index-docs-worker") args = parser.parse_args() |