Fixed typo

This commit is contained in:
Nex 2022-02-09 13:30:31 +01:00
parent e9cc6b3928
commit 57cbb0ed56
2 changed files with 4 additions and 4 deletions

View File

@ -35,9 +35,9 @@ class Getprop(AndroidExtraction):
# Alert if phone is outdated.
security_patch = self.results.get("ro.build.version.security_patch", "")
if security_patch:
patch_date = datetime.strptime(security_path, "%Y-%m-%d")
patch_date = datetime.strptime(security_patch, "%Y-%m-%d")
if (datetime.now() - patch_date) > timedelta(days=6*30):
self.log.warning("This phone has not received security updates for more than "
"six months (last update: %s)", security_path)
"six months (last update: %s)", security_patch)
self.log.info("Extracted %d Android system properties", len(self.results))

View File

@ -51,9 +51,9 @@ class Getprop(BugReportModule):
# Alert if phone is outdated.
security_patch = self.results.get("ro.build.version.security_patch", "")
if security_patch:
patch_date = datetime.strptime(security_path, "%Y-%m-%d")
patch_date = datetime.strptime(security_patch, "%Y-%m-%d")
if (datetime.now() - patch_date) > timedelta(days=6*30):
self.log.warning("This phone has not received security updates for more than "
"six months (last update: %s)", security_path)
"six months (last update: %s)", security_patch)
self.log.info("Extracted %d Android system properties", len(self.results))