changes to the encryption to the users and Items
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user