Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Oct 29, 2022
1 parent c5eb184 commit a13c493
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion dictdatabase/io_unsafe.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def read_index_file(db_name: str):


def write_index_file(db_name: str, key, start_index, end_index, indent_level, indent_with, value_hash):
path = f"{config.storage_directory}/.ddb/{db_name.replace('/', '___')}.index"
path = f"{config.storage_directory}/.ddb/{db_name}.index"
Path(path).parent.mkdir(parents=True, exist_ok=True)
indices = read_index_file(db_name)
indices[key] = [start_index, end_index, indent_level, indent_with, value_hash]
Expand Down
1 change: 0 additions & 1 deletion profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# a2lU has many annotations
# DDB.at("tasks").read(key="fM44", as_type=PathDict)
for _ in range(10):
DDB.at("tasks").read(key="a2lU", as_type=PathDict)
with DDB.at("tasks").session(key="a2lU", as_type=PathDict) as (session, task):
task["jay"] = lambda x: (x or 0) + 1
session.write()
Expand Down

0 comments on commit a13c493

Please sign in to comment.