优化涂抹错误分析
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from collections import defaultdict
|
||||
from datetime import date
|
||||
from datetime import date, timedelta
|
||||
|
||||
from sqlalchemy import update, exists, select
|
||||
from sqlalchemy import update, exists, select, and_
|
||||
|
||||
from db import MysqlSession
|
||||
from db.mysql import ZxIeOcrerror, ZxPhrec
|
||||
@@ -12,7 +12,8 @@ if __name__ == '__main__':
|
||||
session = MysqlSession()
|
||||
ocr_errors = (session.query(ZxIeOcrerror.pk_phrec, ZxIeOcrerror.cXm, ZxIeOcrerror.cSfzh, ZxIeOcrerror.cfjaddress,
|
||||
ZxIeOcrerror.pk_phhd, ZxIeOcrerror.cfjaddress2)
|
||||
.filter(ZxIeOcrerror.paint_date >= today)
|
||||
.filter(and_(ZxIeOcrerror.creationtime >= today,
|
||||
ZxIeOcrerror.creationtime < today + timedelta(days=1)))
|
||||
.order_by(ZxIeOcrerror.pk_phrec.desc()).all())
|
||||
session.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user