Skip to content

Commit

Permalink
Merge pull request #21 from aarhusstadsarkiv/dev-matca
Browse files Browse the repository at this point in the history
Version 1.1.1
  • Loading branch information
MatteoCampinoti94 authored Nov 20, 2023
2 parents 8674d8e + dd498cc commit f484826
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion acacore/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.0"
__version__ = "1.1.1"
8 changes: 4 additions & 4 deletions acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def from_file(
file.action = file.action_data.reidentify.onfail
else:
file.action = "manual"
file.action_data = ActionData(manual=ManualAction(reasoning="Re-identify failure", process=""))
file.action_data = ActionData(manual=ManualAction(reason="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 All @@ -141,13 +141,13 @@ def from_file(
or height < (ignore_if.pixel_height or 0)
):
file.action = "ignore"
file.action_data.ignore.reasoning = ignore_if.reason or file.action_data.ignore.reasoning
file.action_data.ignore.reason = ignore_if.reason or file.action_data.ignore.reason
elif file.is_binary and file.size < (ignore_if.binary_size or 0): # noqa: SIM114
file.action = "ignore"
file.action_data.ignore.reasoning = ignore_if.reason or file.action_data.ignore.reasoning
file.action_data.ignore.reason = ignore_if.reason or file.action_data.ignore.reason
elif file.size < (ignore_if.size or 0):
file.action = "ignore"
file.action_data.ignore.reasoning = ignore_if.reason or file.action_data.ignore.reasoning
file.action_data.ignore.reason = ignore_if.reason or file.action_data.ignore.reason

return file

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.1.0"
version = "1.1.1"
description = ""
authors = ["Matteo Campinoti <[email protected]>"]
license = "GPL-3.0"
Expand Down

0 comments on commit f484826

Please sign in to comment.