Prechádzať zdrojové kódy

update collection api

CJYen 3 rokov pred
rodič
commit
71325665d5
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      main.py

+ 2 - 1
main.py

@@ -184,7 +184,8 @@ def collection(userid):
     else:
         results1 = table3.find(userid=userid)
         for item in results1:
-            nftdrops[i] = item
+            nft_id = item['nftid']
+            nftdrops[i] = table2.find_one(id=nft_id)
             i += 1
 
         results2 = table2.find(userid=userid)