Skip to content

Commit

Permalink
Merge pull request #747
Browse files Browse the repository at this point in the history
v4.1.12
  • Loading branch information
MatteoCampinoti94 authored Nov 21, 2024
2 parents 1ecb682 + 8af5714 commit 2d9e145
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/get_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ def main(file: str, tag: str) -> str:
header: str = f"## v{tag.lstrip('v')}"
body: list[str] = []
is_body: bool = False
with open(file, "r", encoding="utf-8") as f:
with open(file, encoding="utf-8") as f:
while line := f.readline():
line = line.rstrip()
if is_body and line.startswith("## "):
break
elif line == header or line.startswith(f"{header} "):
if line == header or line.startswith(f"{header} "):
is_body = True
continue
elif is_body and line.startswith("#"):
if is_body and line.startswith("#"):
body.append(line[1:])
elif is_body:
body.append(line)
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v4.1.12

### Changes

* Use acacore 3.3.3

## v4.1.11

### Changes
Expand Down
2 changes: 1 addition & 1 deletion digiarch/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.1.11"
__version__ = "4.1.12"
2 changes: 2 additions & 0 deletions digiarch/commands/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ def command_identify(
db_path.parent.mkdir(parents=True, exist_ok=True)

with FileDB(db_path) as database:
if not database.is_initialised():
database.init()
log_file, log_stdout, _ = start_program(ctx, database, __version__, None, True, True, False)
database.init()

Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "digiarch"
version = "4.1.11"
version = "4.1.12"
description = "Tools for the Digital Archive Project at Aarhus Stadsarkiv"
authors = ["Aarhus Stadsarkiv <[email protected]>"]
license = "GPL-3.0"
Expand All @@ -12,7 +12,7 @@ include = ["pyproject.toml"]

[tool.poetry.dependencies]
python = "^3.11"
acacore = {git = "https://github.com/aarhusstadsarkiv/acacore.git", tag = "v3.3.2"}
acacore = {git = "https://github.com/aarhusstadsarkiv/acacore.git", tag = "v3.3.3"}
patool = "^3.0.3"
tnefparse = "^1.4.0"
extract-msg = "^0.52.0"
Expand Down
Binary file modified tests/files/_metadata/files.db
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def test_edit_action(tests_folder: Path, files_folder: Path, files_folder_copy:
assert file2.action_data.model_dump().get(action) == action_data.model_dump()

history: HistoryEntry = database.history.select(
where=f"UUID = ? and OPERATION = ?",
where="UUID = ? and OPERATION = ?",
order_by=[("TIME", "desc")],
limit=1,
parameters=[str(file.uuid), f"{app.name}.{group_edit.name}.{group_action.name}.{action}:edit"],
Expand Down

0 comments on commit 2d9e145

Please sign in to comment.