diff --git a/mvt/ios/modules/mixed/sms_attachments.py b/mvt/ios/modules/mixed/sms_attachments.py index ceba220..ebafb8e 100644 --- a/mvt/ios/modules/mixed/sms_attachments.py +++ b/mvt/ios/modules/mixed/sms_attachments.py @@ -55,7 +55,7 @@ class SMSAttachments(IOSExtraction): names = [description[0] for description in cur.description] for item in cur: - attachment = dict() + attachment = {} for index, value in enumerate(item): if (names[index] in ["user_info", "sticker_user_info", "attribution_info", "ck_server_change_token_blob", "sr_ck_server_change_token_blob"]) and value: diff --git a/mvt/ios/modules/mixed/webkit_resource_load_statistics.py b/mvt/ios/modules/mixed/webkit_resource_load_statistics.py index 2886503..8e685e5 100644 --- a/mvt/ios/modules/mixed/webkit_resource_load_statistics.py +++ b/mvt/ios/modules/mixed/webkit_resource_load_statistics.py @@ -61,14 +61,14 @@ class WebkitResourceLoadStatistics(IOSExtraction): self.results[key] = [] for row in cur: - self.results[key].append(dict( - domain_id=row[0], - registrable_domain=row[1], - last_seen=row[2], - had_user_interaction=bool(row[3]), + self.results[key].append({ + "domain_id": row[0], + "registrable_domain": row[1], + "last_seen": row[2], + "had_user_interaction": bool(row[3]), # TODO: Fix isodate. - last_seen_isodate=convert_timestamp_to_iso(datetime.datetime.utcfromtimestamp(int(row[2]))), - )) + "last_seen_isodate": convert_timestamp_to_iso(datetime.datetime.utcfromtimestamp(int(row[2]))), + }) if len(self.results[key]) > 0: self.log.info("Extracted a total of %d records from %s", len(self.results[key]), db_path)