Archived
将数据库内的base64编码更换为了URL
This commit is contained in:
4 files changed
+376
-2
No files matched your search
+2
-2
@@ -42,7 +42,7 @@ class SQLite:
|
||||
tables = self.__cursor.fetchall()
|
||||
lst = []
|
||||
for table in tables:
|
||||
if table[1] != 'ReqCount':
|
||||
if table[1] != 'reqcount':
|
||||
lst.append(table[1])
|
||||
del tables
|
||||
return lst
|
||||
@@ -132,7 +132,7 @@ class SQLite:
|
||||
lst = []
|
||||
for data in tables:
|
||||
lst.append({'index': data[0],
|
||||
'base64': data[1],
|
||||
'url': data[1],
|
||||
'width': data[2],
|
||||
'height': data[3]})
|
||||
del tables
|
||||
|
||||
File diff suppressed because one or more lines are too long.
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# -- coding:utf-8 --
|
||||
# @Author: markushammered@gmail.com
|
||||
# @Development Tool: PyCharm
|
||||
# @Create Time: 2022/4/16
|
||||
# @File Name: test_download.py
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# -- coding:utf-8 --
|
||||
# @Author: markushammered@gmail.com
|
||||
# @Development Tool: PyCharm
|
||||
# @Create Time: 2022/4/16
|
||||
# @File Name: test_img.py
|
||||
Reference in New Issue
Block a user