adjust arguments
This commit is contained in:
parent
016d0e6b18
commit
d7b3373145
2 changed files with 3 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ def run():
|
|||
|
||||
# ----------------------------- define session_id ---------------------------- #
|
||||
|
||||
session_id = get_session_id(args.session_id, args.resume, args.output_dir)
|
||||
session_id = get_session_id(args.output_dir, args.resume, args.session_id)
|
||||
|
||||
# ------------------------------- setup logging ------------------------------ #
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import string
|
|||
from dataclasses import dataclass
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from urllib.parse import urlunparse
|
||||
|
||||
from loguru import logger
|
||||
|
|
@ -68,7 +69,7 @@ def load_json_to_environ(cred_file: Path) -> None:
|
|||
os.environ[key] = value
|
||||
|
||||
|
||||
def get_session_id(args_session_id: str, args_resume: bool, args_output_dir: Path) -> str:
|
||||
def get_session_id(args_output_dir: Path, args_resume: bool, args_session_id: Optional[str]) -> str:
|
||||
"""converts the cli arguments to the correct session_id"""
|
||||
session_id = args_session_id
|
||||
if not session_id:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue