Skip to content

Commit

Permalink
Merge pull request #46 from djotaku/bugfix2
Browse files Browse the repository at this point in the history
another bugfix
  • Loading branch information
djotaku authored Feb 20, 2023
2 parents 67df1fc + 229e96c commit fded3d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snapintime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Eric Mesa"
__version__ = "2.1.1"
__version__ = "2.1.2"
__license__ = "GNU GPL v3.0"
__copyright__: str = "(c) 2014 - 2023 Eric Mesa"
__email__: str = "ericsbinaryworld at gmail dot com"
Expand Down
3 changes: 2 additions & 1 deletion snapintime/culling.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def cull_seven_days_ago(configuration: dict, remote: bool = False) -> list:
return_list = []
for subvol in configuration.values():
location: str = "remote_subvol_dir" if remote else "backuplocation"
subvols_seven_days_ago = get_subvols_by_date(subvol.get(location), seven_days_ago_reg_ex, True)
subvols_seven_days_ago = get_subvols_by_date(subvol.get(location), seven_days_ago_reg_ex, True,
subvol.get("remote_location"))
log.debug(f"for {subvol.get(location)} {subvols_seven_days_ago=}")
if remote:
subvols_seven_days_ago = remove_protected(subvol, subvols_seven_days_ago)
Expand Down

0 comments on commit fded3d2

Please sign in to comment.