refactor: module structure

This commit is contained in:
2023-10-10 01:30:12 +08:00
parent d13076c667
commit 6a19ead8d1
3 changed files with 11 additions and 10 deletions

View File

@ -35,7 +35,7 @@ def hamming_distance_sql_function(user_input, db_entry) -> int:
)
class ImagePHashDatabase:
class ImagePhashDatabase:
def __init__(self, db_path: str):
with sqlite3.connect(db_path) as conn:
self.hash_size = int(