
原因是个别用户的方舟id是0开头的

而作者大大ark_db.py的250行的查询语句忘记用单引包装了,会导致查库抹除首位,改一下就好了
count_sql = f"select count(*) from {ark_record_table} where {user_id_field} = {self.user_id}"
--> count_sql = f"select count(*) from {ark_record_table} where {user_id_field} = '{self.user_id}'"
原因是个别用户的方舟id是0开头的

而作者大大ark_db.py的250行的查询语句忘记用单引包装了,会导致查库抹除首位,改一下就好了
--> count_sql = f"select count(*) from {ark_record_table} where {user_id_field} = '{self.user_id}'"