diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d059fc9..df4ef8f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,14 +4,10 @@ - @@ -681,7 +676,8 @@ - diff --git a/app/DataBase/micro_msg.py b/app/DataBase/micro_msg.py index 4e489af..106865e 100644 --- a/app/DataBase/micro_msg.py +++ b/app/DataBase/micro_msg.py @@ -31,7 +31,7 @@ def get_contact(): lock.acquire(True) sql = '''select UserName,Alias,Type,Remark,NickName,PYInitial,RemarkPYInitial,ContactHeadImgUrl.smallHeadImgUrl,ContactHeadImgUrl.bigHeadImgUrl from Contact inner join ContactHeadImgUrl on Contact.UserName = ContactHeadImgUrl.usrName - where Type=3 and Alias is not null + where Type%2=1 and Alias is not null order by PYInitial ''' cursor.execute(sql)