图片使用懒加载减少HTML卡顿

This commit is contained in:
shuaikangzhou
2024-01-02 21:05:19 +08:00
parent 240e296bd3
commit 6033a6a1b5
2 changed files with 7 additions and 9 deletions

View File

@@ -21,7 +21,6 @@ def is_database_exist():
return os.path.exists(db_path)
@singleton
class MicroMsg:
def __init__(self):
self.DB = None
@@ -68,7 +67,7 @@ class MicroMsg:
try:
lock.acquire(True)
sql = '''
SELECT UserName, Alias, Type, Remark, NickName, PYInitial, RemarkPYInitial, ContactHeadImgUrl.smallHeadImgUrl, ContactHeadImgUrl.bigHeadImgUrl
SELECT UserName, Alias, Type, Remark, NickName, PYInitial, RemarkPYInitial, ContactHeadImgUrl.smallHeadImgUrl, ContactHeadImgUrl.bigHeadImgUrl,ExTraBuf
FROM Contact
INNER JOIN ContactHeadImgUrl ON Contact.UserName = ContactHeadImgUrl.usrName
WHERE UserName = ?
@@ -109,4 +108,3 @@ class MicroMsg:
if __name__ == '__main__':
pass
# get_contact()