Update webapp1.py

This commit is contained in:
Joseph Cheung 2023-02-26 21:31:29 +08:00
parent 327ae9002e
commit 273489b557

View file

@ -729,7 +729,7 @@ def search():
gpt_judge = [] gpt_judge = []
for tmpj in gpt.split(): for tmpj in gpt.split():
try: try:
gpt_judge = json.load(tmpj) gpt_judge = json.loads(tmpj)
except:pass except:pass
if len(gpt_judge)==3 and gpt_judge[0] in acts and gpt_judge[2] != '' and (gpt_judge[1]=='' or gpt_judge[1]=='True' or gpt_judge[1]=='true'): if len(gpt_judge)==3 and gpt_judge[0] in acts and gpt_judge[2] != '' and (gpt_judge[1]=='' or gpt_judge[1]=='True' or gpt_judge[1]=='true'):
@ -939,7 +939,7 @@ button.btn_more {
const original_search_query = "''' + original_search_query.replace('"',"") + r'''" const original_search_query = "''' + original_search_query.replace('"',"") + r'''"
const search_queryquery = "''' + search_query.query.replace('"',"") + r'''" const search_queryquery = "''' + search_query.query.replace('"',"") + r'''"
const search_type = "''' + search_type + r'''" const search_type = "''' + search_type + r'''"
const net_search = "''' + net_search_str + r'''" const net_search = ''' + net_search_str + r'''
</script><script> </script><script>
//rsa //rsa
function stringToArrayBuffer(str){ function stringToArrayBuffer(str){