use init, not create
Some checks failed
Mypy / mypy (push) Failing after 44s
Pytest / pytest (3.12) (push) Successful in 50s
Pytest / pytest (3.13) (push) Successful in 47s
Pytest / pytest (3.14) (push) Successful in 48s
Ruff / ruff (push) Successful in 33s

This commit is contained in:
Justus Kuhlmann 2025-12-04 12:05:17 +01:00
commit b0ef8c3fc0
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -1,6 +1,5 @@
from configparser import ConfigParser
import sqlite3
import datalad.api as dl
import os
from .tracker import save, init
@ -63,7 +62,7 @@ def create(path: str) -> None:
Create folder of backlogs.
"""
create(path)
init(path)
_create_db(os.path.join(path, 'backlogger.db'))
os.chmod(os.path.join(path, 'backlogger.db'), 0o666) # why does this not work?
_create_config(path)