ming 3 rokov pred
rodič
commit
f3e4a920fd
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -202,7 +202,7 @@ def gen_avatar(name_hash, imgurl):
         statement = 'UPDATE table_name SET status = 1 WHERE id=1;'
         statement = 'UPDATE table_name SET status = 1 WHERE id=1;'
         db.query(statement)
         db.query(statement)
         name_hash = works[0]['name_hash']
         name_hash = works[0]['name_hash']
-        imgurl = works[0].['imgurl']
+        imgurl = works[0]['imgurl']
         c = rpyc.connect("localhost", 8868)
         c = rpyc.connect("localhost", 8868)
         c._config['sync_request_timeout'] = None
         c._config['sync_request_timeout'] = None
         remote_svc = c.root
         remote_svc = c.root