4 Commits

4 changed files with 7 additions and 4 deletions

1
.python-version Normal file
View File

@ -0,0 +1 @@
3.10.5

View File

@ -14,6 +14,7 @@ Released under the GNU GENERAL PUBLIC LICENSE v3 (See LICENSE file for more)
import datetime
import os
# import pprint
import shutil
import sys
import syslog
@ -185,7 +186,7 @@ class BackupRotator:
self.log("Removing items")
for child_to_purge in children_to_purge:
child_basename = os.path.basename(child_to_purge)
self._remove_item(config, item_to_purge)
self._remove_item(config, child_to_purge)
def _rotate_path_for_maximum_age(self, config, path: str, max_age_days: int):

View File

@ -9,5 +9,6 @@ pyyaml = ">=5.4"
[dev-packages]
[requires]
python_version = "3"
python_version = "3.10.5"

4
Pipfile.lock generated
View File

@ -1,11 +1,11 @@
{
"_meta": {
"hash": {
"sha256": "ac6a3bf65ec43902d7a8907c3b0ae70e365127a1f93ecf12080f847eadb7dc35"
"sha256": "cceb18d3baeb19edef3ba31b743720003102c4c3d9cddd6b595c664692a37384"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3"
"python_version": "3.10.5"
},
"sources": [
{