Przeglądaj źródła

alter col content

ming 3 lat temu
rodzic
commit
67e4f45599
1 zmienionych plików z 3 dodań i 0 usunięć
  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()