Your Name 4 years ago
parent
commit
8835f4000b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hhh/main.py

+ 2 - 1
hhh/main.py

@@ -12,7 +12,8 @@ app = FastAPI()
 def check_db(domain_name):
     global db
     table=db['q_cache']
-    table.upsert({'query':domain_name},keys=['query'])
+    table.insert({'domain_name':domain_name})
+#    table.upsert({'query':domain_name},keys=['query'])
     db.commit()
 #    db.query('select')