added tabs to logistics frontend

This commit is contained in:
GotthardG
2025-02-05 11:55:46 +01:00
parent 9e5ae2b43c
commit 25673ae05c
7 changed files with 759 additions and 534 deletions

View File

@ -1,4 +1,4 @@
from typing import List, Optional, ClassVar
from typing import List, Optional
from datetime import datetime
from pydantic import BaseModel, EmailStr, constr, Field, field_validator
from datetime import date
@ -362,8 +362,28 @@ class SampleEventResponse(BaseModel):
class Results(BaseModel):
id: int
pgroup: str
sample_id: int
method: str
resolution: float
unit_cell: str
spacegroup: str
rmerge: float
rmeas: float
isig: float
cc: float
cchalf: float
completeness: float
multiplicity: float
nobs: int
total_refl: int
unique_refl: int
comments: Optional[constr(max_length=200)] = None
# Define attributes for Results here
pass
class Config:
from_attributes = True
class ContactCreate(BaseModel):
@ -672,7 +692,8 @@ class SetTellPositionRequest(BaseModel):
tell: str
pucks: List[SetTellPosition]
from_attributes: ClassVar[bool] = True
class Config:
from_attributes = True
class PuckWithTellPosition(BaseModel):