Skip to content

Commit

Permalink
Merge branch 'dev' into feat/add_filters
Browse files Browse the repository at this point in the history
  • Loading branch information
MathildeNS committed Feb 11, 2025
2 parents 30e9c7d + d2d181b commit 29285bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/routers/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import io
import tempfile
import uuid
import uuid as uuid_pkg
from datetime import datetime
from typing import List
from zipfile import ZipFile

import magic
from fastapi import APIRouter, Depends, File, Form, HTTPException, Query, UploadFile
from fastapi.responses import JSONResponse, StreamingResponse
from fastapi.responses import StreamingResponse
from sqlmodel import Session, select

from src.config import settings
Expand Down
1 change: 1 addition & 0 deletions api/src/services/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def update_annotations(db: Session, file_id: int, data: UpdateFile):
)
# update des annotations
db_file.annotations = [d.dict() for d in data.annotations]
# update de la date
if data.date:
data.date = datetime.fromisoformat(data.date)
db_file.date = data.date
Expand Down

0 comments on commit 29285bd

Please sign in to comment.