小程序在9月27日发布了正式版
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
from datetime import datetime
|
||||
|
||||
import logging
|
||||
import peewee
|
||||
|
||||
from api.db.db_models import DB
|
||||
@@ -38,7 +38,7 @@ class CommonService:
|
||||
else:
|
||||
query_records = cls.model.select()
|
||||
if reverse is not None:
|
||||
if not order_by or not hasattr(cls, order_by):
|
||||
if not order_by or not hasattr(cls.model, order_by): # 20250923 这里之前使用cls ,而没有model是错误的
|
||||
order_by = "create_time"
|
||||
if reverse is True:
|
||||
query_records = query_records.order_by(
|
||||
|
||||
Reference in New Issue
Block a user