Skip to content

Commit

Permalink
Merge pull request #3 from tisu19021997/feat/native-os-metadata
Browse files Browse the repository at this point in the history
feat(native-os-metadata): save native image description and tags beside database
  • Loading branch information
tisu19021997 authored Jan 6, 2025
2 parents 466e371 + 2da3b65 commit ab39992
Show file tree
Hide file tree
Showing 11 changed files with 387 additions and 117 deletions.
18 changes: 0 additions & 18 deletions app.py

This file was deleted.

105 changes: 104 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ colorthief = "^0.2.1"
sqlmodel = "^0.0.22"
sqlite-vec = "^0.1.6"
sentence-transformers = "^3.3.1"
pyexiv2 = "^2.15.3"
xattr = "^1.1.0"

[tool.poetry.group.dev.dependencies]
ruff = "^0.3.0"
Expand Down
1 change: 0 additions & 1 deletion snipai/src/common/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def init(cls, base_path: Path) -> None:
"""Initialize database connection"""
if cls._engine is None:
db_path = base_path / "app.db"
sqlite_url = f"sqlite:///{db_path}"

# Create engine with connection pool
def _create_connection():
Expand Down
1 change: 0 additions & 1 deletion snipai/src/common/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from enum import StrEnum
from datetime import datetime, timezone, timedelta
from typing import Tuple, Optional


class TimeFilter(StrEnum):
Expand Down
1 change: 0 additions & 1 deletion snipai/src/services/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from concurrent.futures import ThreadPoolExecutor
from queue import Queue
from threading import Thread
from typing import Optional
from PyQt6.QtCore import QObject, pyqtSignal


Expand Down
Loading

0 comments on commit ab39992

Please sign in to comment.