Skip to content

Commit

Permalink
refactor: calculate diff bitween this branch and main
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 9, 2024
1 parent e3bdfee commit 638a969
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ dmypy.json
venv/
env/

testing/
test/
8 changes: 4 additions & 4 deletions src/forensicsim/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def fetch_data(self):
(
objstore_id,
varint_raw,
) = ccl_chromium_indexeddb.le_varint_from_bytes(
) = ccl_chromium_indexeddb.custom_le_varint_from_bytes(
record.key[len(prefix_objectstore) :]
)
except TypeError:
Expand Down Expand Up @@ -192,7 +192,7 @@ def iterate_records(self, do_not_filter=False):
(
_value_version,
varint_raw,
) = ccl_chromium_indexeddb.le_varint_from_bytes(
) = ccl_chromium_indexeddb.custom_le_varint_from_bytes(
record.value
)
val_idx = len(varint_raw)
Expand All @@ -203,9 +203,9 @@ def iterate_records(self, do_not_filter=False):
val_idx += 1

(
_blink_version,
_,
varint_raw,
) = ccl_chromium_indexeddb.le_varint_from_bytes(
) = ccl_chromium_indexeddb.custom_le_varint_from_bytes(
record.value[val_idx:]
)

Expand Down
1 change: 1 addition & 0 deletions src/forensicsim/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def _parse_people(people: list[dict]) -> set[Contact]:
parsed_people = set()
for p in people:
p |= {"origin_file": p.get("origin_file")}
p |= p.get("value")
parsed_people.add(Contact.from_dict(p))
return parsed_people

Expand Down

0 comments on commit 638a969

Please sign in to comment.