Ver Fonte

add leave loop message

ming há 3 anos atrás
pai
commit
88206f5cfe
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -194,7 +194,7 @@ def gen_avatar(name_hash, imgurl):
         statement = 'SELECT * FROM avatar_queue'
         works = []
         for row in db.query(statement):
-            works.append({'id':row['id'],'name_hash':row['name_hash'],'imgurl':['imgurl']})
+            works.append({'id':row['id'],'name_hash':row['name_hash'],'imgurl':row['imgurl']})
         if len(works)==0:
             print('leave process loop')
             break