Your Name 4 lat temu
rodzic
commit
5cf25d459b
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      similar_server/main.py

+ 2 - 1
similar_server/main.py

@@ -37,7 +37,8 @@ async def read_item(domain_name):
     for c in cursor:
         print(c['json'])
         print(c['dt'])
-        return c['json']
+        jsdict=ast.literal_eval(c['json'])
+        return jsdict
 
     print(domain_name)
 #    conn = rpyc.connect("localhost",12345)