将数据库内的base64编码更换为了URL

This commit is contained in:
MarkusJoe
2022-04-16 11:27:10 +08:00
parent 34f52b3d45
commit 87bfca82d1
4 files changed
+376 -2

No files matched your search

+2 -2
View File
@@ -42,7 +42,7 @@ class SQLite:
tables = self.__cursor.fetchall() tables = self.__cursor.fetchall()
lst = [] lst = []
for table in tables: for table in tables:
if table[1] != 'ReqCount': if table[1] != 'reqcount':
lst.append(table[1]) lst.append(table[1])
del tables del tables
return lst return lst
@@ -132,7 +132,7 @@ class SQLite:
lst = [] lst = []
for data in tables: for data in tables:
lst.append({'index': data[0], lst.append({'index': data[0],
'base64': data[1], 'url': data[1],
'width': data[2], 'width': data[2],
'height': data[3]}) 'height': data[3]})
del tables del tables
File diff suppressed because one or more lines are too long.
+6
View File
@@ -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
+6
View File
@@ -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