3v324v23 commited on
Commit
25ec0a8
·
1 Parent(s): de21d06

Add debug logging for trade_date

Browse files
Files changed (1) hide show
  1. apps/api/routers/trade_hf.py +5 -0
apps/api/routers/trade_hf.py CHANGED
@@ -73,6 +73,11 @@ async def search_trade_records(
73
  result = await db.execute(paginated_query)
74
  records = result.scalars().all()
75
 
 
 
 
 
 
76
  # 转换为响应格式
77
  items = []
78
  for r in records:
 
73
  result = await db.execute(paginated_query)
74
  records = result.scalars().all()
75
 
76
+ # 调试:打印第一条记录的trade_date
77
+ if records:
78
+ first = records[0]
79
+ print(f"DEBUG: First record trade_date type={type(first.trade_date)}, value={repr(first.trade_date)}")
80
+
81
  # 转换为响应格式
82
  items = []
83
  for r in records: