https and ssl integration on the backend, frontend and started integration of logistics app as a separate frontend

This commit is contained in:
GotthardG
2024-11-19 10:29:10 +01:00
parent a931bfb8ec
commit 2a27b61a1f
2 changed files with 4 additions and 3 deletions

View File

@ -121,7 +121,6 @@ async def generate_dewar_qrcode(dewar_id: int, db: Session = Depends(get_db)):
return {"message": "QR Code generated", "qrcode": dewar.unique_id}
def generate_label(dewar):
buffer = BytesIO()
# Set page orientation to landscape

View File

@ -390,11 +390,12 @@ const DewarDetails: React.FC<DewarDetailsProps> = ({
setChangesMade(true);
};
const handleGenerateQRCode = () => {
const handleGenerateQRCode = async () => {
if (!dewar) return;
try {
const newQrCodeValue = dewar.unique_id; // Using unique_id directly for QR code value
const response = await DewarsService.generateDewarQrcodeDewarsDewarIdGenerateQrcodePost(dewar.id);
const newQrCodeValue = response.unique_id;
setQrCodeValue(newQrCodeValue);
setIsQRCodeGenerated(true);
setFeedbackMessage("QR Code generated successfully");
@ -406,6 +407,7 @@ const DewarDetails: React.FC<DewarDetailsProps> = ({
}
};
const handleDownloadLabel = async () => {
if (!dewar) return;