Small bugfixes

This commit is contained in:
2025-12-18 08:10:57 -05:00
parent a2682314c9
commit d183678282
3 changed files with 22 additions and 39 deletions

View File

@@ -4,6 +4,7 @@ from sqlalchemy import and_, or_, func, desc
from datetime import date, datetime
import secrets
from app.models.ppr import PPRRecord, PPRStatus
from app.models.journal import EntityType
from app.schemas.ppr import PPRCreate, PPRUpdate
from app.crud.crud_journal import journal as crud_journal
@@ -89,6 +90,7 @@ class CRUDPPR:
# Log creation in journal
crud_journal.log_change(
db,
EntityType.PPR,
db_obj.id,
f"PPR created for {db_obj.ac_reg}",
created_by,