Archived
更新db.py内抓取数据的逻辑
This commit is contained in:
3 files changed
+2
No files matched your search
@@ -105,6 +105,8 @@ class SQLite:
|
||||
data = self.__cursor.fetchone()
|
||||
if not is_check:
|
||||
self.update(name, data[-1])
|
||||
self.__cursor.execute('select * from reqcount where name="%(name)s"' % {'name': name})
|
||||
data = self.__cursor.fetchone()
|
||||
return data
|
||||
|
||||
def update(self, name: str, times: int) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user