Compare commits

..

7 Commits

Author SHA1 Message Date
besendorf
bcc720fd13 Merge branch 'main' into update-check 2025-10-23 15:12:23 +02:00
besendorf
7fe66e8d5a Merge branch 'main' into update-check 2025-10-09 11:40:05 +02:00
Janik Besendorf
a41b772e9e fix tests 2025-08-05 15:40:24 +02:00
Janik Besendorf
f12cf7dec5 ruff syntax fix 2025-08-05 15:21:33 +02:00
Janik Besendorf
3b144b263b Add CLI flags to disable version and indicator checks 2025-08-05 15:15:53 +02:00
Janik Besendorf
ab9abfaded add error hadnling for Update checks 2025-07-25 10:38:27 +02:00
Janik Besendorf
ef2ffb0dda reduce update check timeouts to 5s 2025-07-25 10:15:45 +02:00

View File

@@ -127,24 +127,6 @@ class WebkitSessionResourceLog(IOSExtraction):
browsing_stats = file_plist["browsingStatistics"]
for item in browsing_stats:
most_recent_interaction, last_seen = None, None
if "mostRecentUserInteraction" in item:
try:
most_recent_interaction = convert_datetime_to_iso(
item["mostRecentUserInteraction"]
)
except Exception:
self.log.error(
f'Error converting date of Safari resource"most recent interaction": {item["mostRecentUserInteraction"]}'
)
if "lastSeen" in item:
try:
last_seen = convert_datetime_to_iso(item["lastSeen"])
except Exception:
self.log.error(
f'Error converting date of Safari resource"last seen": {item["lastSeen"]}'
)
items.append(
{
"origin": item.get("PrevalentResourceOrigin", ""),
@@ -157,8 +139,10 @@ class WebkitSessionResourceLog(IOSExtraction):
"subresourceUnderTopFrameOrigins", ""
),
"user_interaction": item.get("hadUserInteraction"),
"most_recent_interaction": most_recent_interaction,
"last_seen": last_seen,
"most_recent_interaction": convert_datetime_to_iso(
item["mostRecentUserInteraction"]
),
"last_seen": convert_datetime_to_iso(item["lastSeen"]),
}
)