fixed ##190
This commit is contained in:
parent
e00f93881f
commit
576002a95c
|
@ -81,8 +81,8 @@ class UserController(metaclass=Singleton):
|
||||||
def checkBarUser(self, user):
|
def checkBarUser(self, user):
|
||||||
date = datetime.now()
|
date = datetime.now()
|
||||||
zero = date.replace(hour=0, minute=0, second=0, microsecond=0)
|
zero = date.replace(hour=0, minute=0, second=0, microsecond=0)
|
||||||
end = zero + timedelta(hours=11)
|
end = zero + timedelta(hours=12)
|
||||||
startdatetime = date.replace(hour=11, minute=0, second=0, microsecond=0)
|
startdatetime = date.replace(hour=12, minute=0, second=0, microsecond=0)
|
||||||
if date > zero and end > date:
|
if date > zero and end > date:
|
||||||
startdatetime = startdatetime - timedelta(days=1)
|
startdatetime = startdatetime - timedelta(days=1)
|
||||||
enddatetime = startdatetime + timedelta(days=1)
|
enddatetime = startdatetime + timedelta(days=1)
|
||||||
|
|
Loading…
Reference in New Issue