refactor/data_backend #12

Merged
jkuhl merged 36 commits from refactor/data_backend into develop 2025-12-04 15:47:45 +01:00
Showing only changes of commit 07173e4999 - Show all commits

make file arg optional

Justus Kuhlmann 2025-12-04 12:04:46 +01:00
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -1,6 +1,7 @@
import os
from configparser import ConfigParser
from .trackers import datalad as dl
from typing import Optional
def get_tracker(path: str) -> str:
@ -21,7 +22,7 @@ def get(path: str, file: str) -> None:
return
def save(path: str, message: str, files: list[str]) -> None:
def save(path: str, message: str, files: Optional[list[str]]=None) -> None:
tracker = get_tracker(path)
if tracker == 'datalad':
dl.save(path, message, files)