changes to the encryption to the users and Items

This commit is contained in:
2026-07-31 20:16:34 +02:00
parent 258e287a39
commit 08d8b78d91
+4 -3
View File
@@ -28,15 +28,16 @@ Sammlungsstruktur:
from bson.objectid import ObjectId, InvalidId
import datetime
from dateutil import parser
import pytz
from datetime import timezone
import os
import json
import shutil
import Web.modules.database.settings as cfg
from Web.modules.database.settings import MongoClient
import Web.modules.inventarsystem.data_protection as dp
def _get_client():
"""Hilfsfunktion für die Erstellung einer MongoClient-Instanz."""
return MongoClient(cfg.MONGODB_HOST, cfg.MONGODB_PORT)
# Add this helper function after imports
def ensure_timezone_aware(dt):
"""Ensures a datetime is timezone-aware, using UTC if naive"""