fix: prevent infinite recursion in web_search and add upsert logic to db_set with new db_execute function

This commit is contained in:
2025-03-28 04:37:22 +00:00
parent 0b54f87e3a
commit 7dfd1c0b44
6 changed files with 120 additions and 8 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ char * web_search(char * q){
if(!json_result){
json_object_put(json_ret);
free(ret);
return web_search_news(q);
return web_search(q);
}
json_object_put(json_ret);
return ret;