Skip to content

Commit

Permalink
refactor: match api of updated chromedb
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 16, 2024
1 parent 5a38618 commit 48c2b89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
"dataclasses-json",
"pause",
"pyautogui",
"pywinauto"
# "pywinauto"
]

dynamic = ["version"]
Expand Down
6 changes: 3 additions & 3 deletions src/forensicsim/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def fetch_data(self) -> None:
(
objstore_id,
varint_raw,
) = ccl_chromium_indexeddb.custom_le_varint_from_bytes(
) = ccl_chromium_indexeddb.le_varint_from_bytes(
record.key[len(prefix_objectstore) :]
)
except TypeError:
Expand Down Expand Up @@ -198,7 +198,7 @@ def __iter__(self) -> Iterator[dict[str, Any]]:
(
_value_version,
varint_raw,
) = ccl_chromium_indexeddb.custom_le_varint_from_bytes(
) = ccl_chromium_indexeddb.le_varint_from_bytes(
record.value
)
val_idx = len(varint_raw)
Expand All @@ -211,7 +211,7 @@ def __iter__(self) -> Iterator[dict[str, Any]]:
(
_,
varint_raw,
) = ccl_chromium_indexeddb.custom_le_varint_from_bytes(
) = ccl_chromium_indexeddb.le_varint_from_bytes(
record.value[val_idx:]
)

Expand Down

0 comments on commit 48c2b89

Please sign in to comment.