fix: datetime引用出错
This commit is contained in:
parent
e544c1112d
commit
1ae6c3fde7
|
|
@ -2,7 +2,6 @@ import datetime
|
||||||
|
|
||||||
from django.core.cache import cache
|
from django.core.cache import cache
|
||||||
from django.db.models import Sum
|
from django.db.models import Sum
|
||||||
from datetime import datetime
|
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from typing import Union
|
from typing import Union
|
||||||
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
|
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
|
||||||
|
|
@ -119,7 +118,7 @@ def do_in(mio: MIO):
|
||||||
raise ParseError('车间物料不足')
|
raise ParseError('车间物料不足')
|
||||||
|
|
||||||
|
|
||||||
def mlog_submit(mlog: Mlog, user: User, now: Union[datetime, None]):
|
def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]):
|
||||||
"""
|
"""
|
||||||
生产日志提交后需要执行的操作
|
生产日志提交后需要执行的操作
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue