modify scripts

This commit is contained in:
oscarz
2025-06-25 18:54:29 +08:00
parent 6bab66e05d
commit ad9c9094c9

View File

@ -607,23 +607,26 @@ class JavbusDBHandler(DatabaseHandler):
result['actors'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_actors} where uncensored=1")
result['actors_uncensored'] = self.cursor.fetchone()[0]
result['act_un'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_actors} where is_full_data=1")
result['actors_full_data'] = self.cursor.fetchone()[0]
result['act_full'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_actors} where is_full_data=1 and is_full_data=1")
result['actors_uncensored_full_data'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_actors} where uncensored=1 and is_full_data=1")
result['act_unc_full'] = self.cursor.fetchone()[0]
# 获取 performers、studios 等表的最终行数
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_movies} ")
result['movies'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_movies} where uncensored=1")
result['movies_uncensored'] = self.cursor.fetchone()[0]
result['mov_un'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_movies} where is_full_data=1")
result['mov_full'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_movies} where is_full_data=1 and is_full_data=1")
result['movies_uncensored_full_data'] = self.cursor.fetchone()[0]
self.cursor.execute(f"SELECT COUNT(*) FROM {self.tbl_name_movies} where uncensored=1 and is_full_data=1")
result['mov_un_full'] = self.cursor.fetchone()[0]
except sqlite3.Error as e:
logging.error(f"query error: {e}")