Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1776d17c52 | ||
| afec45a002 | |||
|
4e0a19c973
|
|||
|
9269736f23
|
@@ -21,10 +21,15 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
- name: Set up Python
|
||||
run: uv python install
|
||||
with:
|
||||
python-version-file: "pyproject.toml"
|
||||
- name: Set Git identity
|
||||
run: |
|
||||
git config user.name "Gitea CI"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "komcache"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
@@ -21,7 +21,7 @@ build-backend = "hatchling.build"
|
||||
komconfig = { workspace = true }
|
||||
|
||||
[tool.bumpversion]
|
||||
current_version = "0.1.1"
|
||||
current_version = "0.1.2"
|
||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||
serialize = ["{major}.{minor}.{patch}"]
|
||||
search = "{current_version}"
|
||||
|
||||
@@ -123,6 +123,17 @@ class KomCache:
|
||||
log.error(f"Error updating data: {e}")
|
||||
return False
|
||||
|
||||
def delete(self, query: str, args: dict[str, Any]) -> bool:
|
||||
try:
|
||||
session = self.Session()
|
||||
session.execute(text(query), args)
|
||||
session.commit()
|
||||
session.close()
|
||||
return True
|
||||
except SQLAlchemyError as e:
|
||||
log.error(f"Error deleting data: {e}")
|
||||
return False
|
||||
|
||||
def get_last_update_date(self, series_name: str) -> str:
|
||||
try:
|
||||
session = self.Session()
|
||||
|
||||
Reference in New Issue
Block a user