瀏覽代碼

alter col content

ming 3 年之前
父節點
當前提交
67e4f45599
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/api/api_v1/endpoints/line.py

+ 3 - 0
app/api/api_v1/endpoints/line.py

@@ -409,9 +409,12 @@ def transactions(skip: int = 0, limit: int = 100):
     )
     sql = 'SELECT * FROM transaction  ' \
           'limit '+str(skip)+', '+str(limit)+''
+    nft_table = db['nft']
     result = db.query(sql)
     rows = []
     for row in result:
+        nft_item = nft_table.find_one(id=row['nft'])
+        row['nft'] = nft_item['title']
         rows.append(row)
     db.close()