Import datetime as dt everywhere
This commit is contained in:
parent
f0c617955b
commit
5ca16ae47c
1 changed files with 25 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue