@@ -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')