mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 17:57:06 +08:00
perf: code style
This commit is contained in:
@@ -40,7 +40,7 @@ class Paginator:
|
||||
stmt = stmt.offset(offset).limit(size)
|
||||
|
||||
result = self.session.exec(stmt)
|
||||
items = result.all() # 移除 scalars() 调用,直接使用 all()
|
||||
items = result.all()
|
||||
|
||||
return items, total
|
||||
|
||||
|
||||
Reference in New Issue
Block a user