Skip to content

Commit

Permalink
- send the correct type to BNCreateDatabaseWithProgress
Browse files Browse the repository at this point in the history
  • Loading branch information
verylazyguy authored and fuzyll committed Sep 15, 2022
1 parent 6337613 commit a5b7aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/filemetadata.py
Expand Up @@ -443,7 +443,7 @@ def create_database(
return core.BNCreateDatabaseWithProgress(
self.raw.handle, str(filename), None,
ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p, ctypes.c_ulonglong,
ctypes.c_ulonglong)(lambda ctxt, cur, total: _progress_func(cur, total)), settings
ctypes.c_ulonglong)(lambda ctxt, cur, total: _progress_func(cur, total)), _settings
)

def open_existing_database(self, filename: str, progress_func: Callable[[int, int], bool] = None):
Expand Down

0 comments on commit a5b7aa1

Please sign in to comment.