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
|
from bson.objectid import ObjectId, InvalidId
|
||||||
import datetime
|
import datetime
|
||||||
from dateutil import parser
|
from dateutil import parser
|
||||||
import pytz
|
|
||||||
from datetime import timezone
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import shutil
|
|
||||||
import Web.modules.database.settings as cfg
|
import Web.modules.database.settings as cfg
|
||||||
from Web.modules.database.settings import MongoClient
|
from Web.modules.database.settings import MongoClient
|
||||||
import Web.modules.inventarsystem.data_protection as dp
|
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
|
# Add this helper function after imports
|
||||||
def ensure_timezone_aware(dt):
|
def ensure_timezone_aware(dt):
|
||||||
"""Ensures a datetime is timezone-aware, using UTC if naive"""
|
"""Ensures a datetime is timezone-aware, using UTC if naive"""
|
||||||
|
|||||||
Reference in New Issue
Block a user