Import datetime as dt everywhere

This commit is contained in:
Alexander Hess 2026-11-30 15:50:17 +01:00
commit 5ca16ae47c
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -7,7 +7,7 @@ Within this package, use the `config` proxy at the package's top level
to access the current configuration!
"""
import datetime
import datetime as dt
import os
import random
import string
@ -28,11 +28,11 @@ class Config:
# -----------------------------
# Date after which the real-life data is discarded.
CUTOFF_DAY = datetime.datetime(2017, 2, 1)
CUTOFF_DAY = dt.datetime(2017, 2, 1)
# If a scheduled pre-order is made within this
# time horizon, we treat it as an ad-hoc order.
QUASI_AD_HOC_LIMIT = datetime.timedelta(minutes=45)
QUASI_AD_HOC_LIMIT = dt.timedelta(minutes=45)
# Operating hours of the platform.
SERVICE_START = 11