Skip to content

Commit

Permalink
Merge pull request #16 from aarhusstadsarkiv/dev-matca
Browse files Browse the repository at this point in the history
Version 1.0.1
  • Loading branch information
clausjuhl authored Nov 10, 2023
2 parents 2324d64 + c450aac commit dc4e81c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion acacore/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.0.1"
2 changes: 1 addition & 1 deletion acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def from_file(
file.action = file.action_data.reidentify.onfail
else:
file.action = "manual"
file.action_data = ActionData(manual=ManualAction(reason="Re-identify failure"))
file.action_data = ActionData(manual=ManualAction(reasoning="Re-identify failure", process=""))
file.puid = file.signature = file.warning = None

if file.action_data and file.action_data.ignore and file.action_data.ignore.ignore_if:
Expand Down
3 changes: 2 additions & 1 deletion acacore/utils/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def get_eof(path: Path, chunk_size: int = 1024) -> bytes:
bytes: The contents of the last chunk of the file as a bytes object.
"""
with path.open("rb") as f:
f.seek(path.stat().st_size - chunk_size)
file_size: int = path.stat().st_size
f.seek(file_size if chunk_size > file_size else chunk_size)
return f.read(chunk_size)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "acacore"
version = "1.0.0"
version = "1.0.1"
description = ""
authors = ["Matteo Campinoti <[email protected]>"]
license = "GPL-3.0"
Expand Down

0 comments on commit dc4e81c

Please sign in to comment.