mirror of
https://github.com/creyD/apilog.git
synced 2026-04-12 19:30:29 +02:00
Compare commits
2 Commits
1.4.78
...
1.4.9-1482
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26ca79b064 | ||
|
|
5868ffbe08 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -91,7 +91,7 @@ jobs:
|
||||
git config --local user.name "creyD"
|
||||
|
||||
- name: Git Version
|
||||
uses: codacy/git-version@2.8.3
|
||||
uses: codacy/git-version@2.8.0
|
||||
id: git_version
|
||||
with:
|
||||
minor-identifier: "feat:"
|
||||
|
||||
8
app/services/db/session.py
Normal file
8
app/services/db/session.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from sqlalchemy_utils import create_database, database_exists
|
||||
|
||||
|
||||
def create_if_not_exists(db_name: str):
|
||||
from creyPY.fastapi.db.session import SQLALCHEMY_DATABASE_URL
|
||||
|
||||
if not database_exists(SQLALCHEMY_DATABASE_URL + db_name):
|
||||
create_database(SQLALCHEMY_DATABASE_URL + db_name)
|
||||
@@ -2,7 +2,6 @@ import os
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from apscheduler.schedulers.background import BackgroundScheduler
|
||||
from creyPY.fastapi.db.helpers import create_if_not_exists
|
||||
from creyPY.fastapi.db.session import SQLALCHEMY_DATABASE_URL, get_db, name
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
@@ -10,6 +9,7 @@ from alembic import command
|
||||
from alembic.config import Config
|
||||
from app.models.app import Application
|
||||
from app.models.entry import LogEntry
|
||||
from app.services.db.session import create_if_not_exists
|
||||
|
||||
|
||||
def delete_old_logs(sess: Session | None = None):
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
annotated-types==0.7.0
|
||||
anyio==4.9.0
|
||||
certifi==2025.7.14
|
||||
anyio==4.8.0
|
||||
certifi==2025.1.31
|
||||
creyPY[postgres]==3.0.0
|
||||
fastapi==0.116.1
|
||||
fastapi-pagination==0.13.3
|
||||
fastapi==0.115.8
|
||||
fastapi-pagination==0.12.31
|
||||
h11==0.14.0
|
||||
httpcore==1.0.8
|
||||
httpcore==1.0.6
|
||||
httpx==0.28.1
|
||||
idna==3.10
|
||||
psycopg==3.2.9
|
||||
psycopg-binary==3.2.9
|
||||
psycopg-pool==3.2.6
|
||||
psycopg==3.2.4
|
||||
psycopg-binary==3.2.4
|
||||
psycopg-pool==3.2.3
|
||||
pydantic==2.9.2
|
||||
pydantic_core==2.23.4
|
||||
python-dotenv==1.1.1
|
||||
python-dotenv==1.0.1
|
||||
sniffio==1.3.1
|
||||
SQLAlchemy==2.0.41
|
||||
starlette==0.47.1
|
||||
typing_extensions==4.14.1
|
||||
SQLAlchemy==2.0.35
|
||||
starlette==0.45.3
|
||||
typing_extensions==4.12.2
|
||||
|
||||
Mako==1.3.10 # Alembic
|
||||
Mako==1.3.5 # Alembic
|
||||
MarkupSafe==3.0.1 # Alembic
|
||||
alembic==1.16.4 # Alembic
|
||||
alembic==1.14.1 # Alembic
|
||||
|
||||
SQLAlchemy-Utils==0.41.2 # SQLAlchemy
|
||||
|
||||
click==8.2.1 # Uvicorn
|
||||
uvicorn==0.35.0 # Uvicorn
|
||||
click==8.1.8 # Uvicorn
|
||||
uvicorn==0.34.0 # Uvicorn
|
||||
|
||||
iniconfig==2.1.0 # pytest
|
||||
packaging==25.0 # pytest
|
||||
pluggy==1.6.0 # pytest
|
||||
pytest==8.4.1 # pytest
|
||||
iniconfig==2.0.0 # pytest
|
||||
packaging==24.1 # pytest
|
||||
pluggy==1.5.0 # pytest
|
||||
pytest==8.3.4 # pytest
|
||||
|
||||
fastapi-filters==0.3.0 # Filters
|
||||
fastapi-filters==0.2.9 # Filters
|
||||
|
||||
APScheduler==3.11.0 # Scheduler for deletion
|
||||
tzlocal==5.3.1 # Scheduler for deletion
|
||||
tzlocal==5.2 # Scheduler for deletion
|
||||
|
||||
Reference in New Issue
Block a user