api: implement static dooris tokens
This commit is contained in:
parent
63a9485209
commit
186ab662fb
2 changed files with 37 additions and 6 deletions
|
|
@ -78,9 +78,10 @@ def main():
|
|||
required=False,
|
||||
nargs=1,
|
||||
action="append",
|
||||
default=[],
|
||||
default=[i for i in os.environ.get("DOORIS_STATIC_API_TOKENS", "").split(",") if bool(i)],
|
||||
)
|
||||
args = argp.parse_args()
|
||||
print(args.static_api_tokens)
|
||||
|
||||
# setup logging
|
||||
logging.basicConfig(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue