mirror of
https://github.com/creyD/apilog.git
synced 2026-04-12 19:30:29 +02:00
Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25967b7e8e | ||
|
|
e5fe4eb4da | ||
|
|
776cd9c343 | ||
|
|
49fd344aaa | ||
|
|
f22588275c | ||
|
|
9d82b0c566 | ||
|
|
f77fe9f1ae | ||
|
|
3f8997f908 | ||
|
|
bda6afbf2b | ||
|
|
315a73ea6f | ||
|
|
9820520cab | ||
|
|
f49126f403 | ||
|
|
7e322b7fbc | ||
|
|
30dce717c1 | ||
|
|
eae989a9ea | ||
|
|
68f64d5e96 | ||
|
|
b6eaa7c1e7 | ||
|
|
38f7c9234d | ||
|
|
ca6a2a3eaa | ||
|
|
055b8af28a | ||
|
|
abe103dc0f | ||
|
|
8da0f31b16 | ||
| d5907074c9 | |||
|
|
06e5a3af30 | ||
|
|
f42ce7abe1 | ||
|
|
a743969689 |
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.12
|
||||
python-version: 3.13
|
||||
cache: 'pip' # caching pip dependencies
|
||||
- name: Setup tests (install dependencies, run migrations)
|
||||
run: |
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
git config --local user.name "creyD"
|
||||
|
||||
- name: Git Version
|
||||
uses: codacy/git-version@2.8.2
|
||||
uses: codacy/git-version@2.8.6
|
||||
id: git_version
|
||||
with:
|
||||
minor-identifier: "feat:"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
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,6 +2,7 @@ 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
|
||||
|
||||
@@ -9,7 +10,6 @@ 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,37 +1,37 @@
|
||||
annotated-types==0.7.0
|
||||
anyio==4.9.0
|
||||
certifi==2025.6.15
|
||||
anyio==4.10.0
|
||||
certifi==2025.8.3
|
||||
creyPY[postgres]==3.0.0
|
||||
fastapi==0.115.14
|
||||
fastapi-pagination==0.13.3
|
||||
fastapi==0.116.1
|
||||
fastapi-pagination==0.14.1
|
||||
h11==0.14.0
|
||||
httpcore==1.0.8
|
||||
httpx==0.28.1
|
||||
idna==3.10
|
||||
psycopg==3.2.9
|
||||
psycopg-binary==3.2.9
|
||||
psycopg-binary==3.2.10
|
||||
psycopg-pool==3.2.6
|
||||
pydantic==2.9.2
|
||||
pydantic_core==2.23.4
|
||||
python-dotenv==1.1.1
|
||||
sniffio==1.3.1
|
||||
SQLAlchemy==2.0.41
|
||||
starlette==0.46.2
|
||||
typing_extensions==4.14.1
|
||||
SQLAlchemy==2.0.43
|
||||
starlette==0.47.3
|
||||
typing_extensions==4.15.0
|
||||
|
||||
Mako==1.3.10 # Alembic
|
||||
MarkupSafe==3.0.1 # Alembic
|
||||
alembic==1.16.2 # Alembic
|
||||
alembic==1.16.5 # Alembic
|
||||
|
||||
SQLAlchemy-Utils==0.41.2 # SQLAlchemy
|
||||
|
||||
click==8.2.1 # Uvicorn
|
||||
click==8.2.2 # Uvicorn
|
||||
uvicorn==0.35.0 # Uvicorn
|
||||
|
||||
iniconfig==2.1.0 # pytest
|
||||
packaging==25.0 # pytest
|
||||
pluggy==1.6.0 # pytest
|
||||
pytest==8.4.1 # pytest
|
||||
pytest==8.4.2 # pytest
|
||||
|
||||
fastapi-filters==0.3.0 # Filters
|
||||
|
||||
|
||||
Reference in New Issue
Block a user