feat: mypy for all type check (#10921)
This commit is contained in:
parent
c91e8b1737
commit
56e15d09a9
584 changed files with 3975 additions and 2826 deletions
|
|
@ -32,8 +32,9 @@ def clean_messages():
|
|||
while True:
|
||||
try:
|
||||
# Main query with join and filter
|
||||
# FIXME:for mypy no paginate method error
|
||||
messages = (
|
||||
db.session.query(Message)
|
||||
db.session.query(Message) # type: ignore
|
||||
.filter(Message.created_at < plan_sandbox_clean_message_day)
|
||||
.order_by(Message.created_at.desc())
|
||||
.limit(100)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue