reywechat 1.0.78__py3-none-any.whl → 1.0.79__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reywechat/rdb.py +14 -14
- {reywechat-1.0.78.dist-info → reywechat-1.0.79.dist-info}/METADATA +1 -1
- {reywechat-1.0.78.dist-info → reywechat-1.0.79.dist-info}/RECORD +5 -5
- {reywechat-1.0.78.dist-info → reywechat-1.0.79.dist-info}/WHEEL +0 -0
- {reywechat-1.0.78.dist-info → reywechat-1.0.79.dist-info}/licenses/LICENSE +0 -0
reywechat/rdb.py
CHANGED
@@ -93,7 +93,7 @@ class WeChatDatabase(WeChatBase):
|
|
93
93
|
|
94
94
|
def build_db(self) -> None:
|
95
95
|
"""
|
96
|
-
Check and build
|
96
|
+
Check and build database tables, by `self.db_names`.
|
97
97
|
"""
|
98
98
|
|
99
99
|
# Check.
|
@@ -759,7 +759,7 @@ class WeChatDatabase(WeChatBase):
|
|
759
759
|
## Insert.
|
760
760
|
if contact_table != []:
|
761
761
|
conn.execute.insert(
|
762
|
-
|
762
|
+
self.db_names['wechat.contact_user'],
|
763
763
|
user_data,
|
764
764
|
'update'
|
765
765
|
)
|
@@ -815,7 +815,7 @@ class WeChatDatabase(WeChatBase):
|
|
815
815
|
## Insert.
|
816
816
|
if contact_table != []:
|
817
817
|
conn.execute.insert(
|
818
|
-
|
818
|
+
self.db_names['wechat.contact_room'],
|
819
819
|
room_data,
|
820
820
|
'update'
|
821
821
|
)
|
@@ -893,7 +893,7 @@ class WeChatDatabase(WeChatBase):
|
|
893
893
|
## Insert.
|
894
894
|
if room_user_data != []:
|
895
895
|
conn.execute.insert(
|
896
|
-
|
896
|
+
self.db_names['wechat.contact_room_user'],
|
897
897
|
room_user_data,
|
898
898
|
'update'
|
899
899
|
)
|
@@ -961,7 +961,7 @@ class WeChatDatabase(WeChatBase):
|
|
961
961
|
|
962
962
|
## Insert.
|
963
963
|
self.database_wechat.execute.insert(
|
964
|
-
|
964
|
+
self.db_names['wechat.contact_user'],
|
965
965
|
data,
|
966
966
|
'update'
|
967
967
|
)
|
@@ -1002,7 +1002,7 @@ class WeChatDatabase(WeChatBase):
|
|
1002
1002
|
|
1003
1003
|
### 'contact_room'.
|
1004
1004
|
self.database_wechat.execute.insert(
|
1005
|
-
|
1005
|
+
self.db_names['wechat.contact_room'],
|
1006
1006
|
data,
|
1007
1007
|
'update'
|
1008
1008
|
)
|
@@ -1024,7 +1024,7 @@ class WeChatDatabase(WeChatBase):
|
|
1024
1024
|
|
1025
1025
|
## Update.
|
1026
1026
|
self.database_wechat.execute.update(
|
1027
|
-
|
1027
|
+
self.db_names['wechat.contact_room'],
|
1028
1028
|
data
|
1029
1029
|
)
|
1030
1030
|
|
@@ -1046,7 +1046,7 @@ class WeChatDatabase(WeChatBase):
|
|
1046
1046
|
|
1047
1047
|
## Update.
|
1048
1048
|
self.database_wechat.execute.update(
|
1049
|
-
|
1049
|
+
self.db_names['wechat.contact_room'],
|
1050
1050
|
data
|
1051
1051
|
)
|
1052
1052
|
|
@@ -1126,7 +1126,7 @@ class WeChatDatabase(WeChatBase):
|
|
1126
1126
|
|
1127
1127
|
# Insert.
|
1128
1128
|
self.database_wechat.execute.insert(
|
1129
|
-
|
1129
|
+
self.db_names['wechat.message_receive'],
|
1130
1130
|
data,
|
1131
1131
|
'ignore'
|
1132
1132
|
)
|
@@ -1169,7 +1169,7 @@ class WeChatDatabase(WeChatBase):
|
|
1169
1169
|
|
1170
1170
|
# Update.
|
1171
1171
|
self.database_wechat.execute.update(
|
1172
|
-
|
1172
|
+
self.db_names['wechat.message_send'],
|
1173
1173
|
data
|
1174
1174
|
)
|
1175
1175
|
|
@@ -1237,7 +1237,7 @@ class WeChatDatabase(WeChatBase):
|
|
1237
1237
|
')'
|
1238
1238
|
)
|
1239
1239
|
result = conn.execute.select(
|
1240
|
-
|
1240
|
+
self.db_names['wechat.message_send'],
|
1241
1241
|
['send_id', 'type', 'receive_id', 'parameter', 'file_id'],
|
1242
1242
|
where,
|
1243
1243
|
order='`plan_time` DESC, `send_id`'
|
@@ -1322,7 +1322,7 @@ class WeChatDatabase(WeChatBase):
|
|
1322
1322
|
## User.
|
1323
1323
|
if message.room is None:
|
1324
1324
|
result = message.receiver.wechat.database.database_wechat.execute.select(
|
1325
|
-
|
1325
|
+
self.db_names['wechat.message_send'],
|
1326
1326
|
['valid'],
|
1327
1327
|
'`user_id` = :user_id',
|
1328
1328
|
limit=1,
|
@@ -1332,7 +1332,7 @@ class WeChatDatabase(WeChatBase):
|
|
1332
1332
|
## Room.
|
1333
1333
|
elif message.user is None:
|
1334
1334
|
result = message.receiver.wechat.database.database_wechat.execute.select(
|
1335
|
-
|
1335
|
+
self.db_names['wechat.message_send'],
|
1336
1336
|
['valid'],
|
1337
1337
|
'`room_id` = :room_id',
|
1338
1338
|
limit=1,
|
@@ -1409,6 +1409,6 @@ class WeChatDatabase(WeChatBase):
|
|
1409
1409
|
|
1410
1410
|
# Insert.
|
1411
1411
|
self.database_wechat.execute.insert(
|
1412
|
-
|
1412
|
+
self.db_names['wechat.message_send'],
|
1413
1413
|
data
|
1414
1414
|
)
|
@@ -3,14 +3,14 @@ reywechat/rall.py,sha256=5J_X-XMOyb1Vp1jyS9-oRFXGOtp2vRPX1g3tJot_Eck,371
|
|
3
3
|
reywechat/rbase.py,sha256=hbxn5spvcl_C_Bw8A9teulOXT9GMlxUw145_YbXIOzc,1124
|
4
4
|
reywechat/rcache.py,sha256=5FIa8UB3VsLHT_EXHHmFP62a5AeS22anJCJXC8t4tWw,908
|
5
5
|
reywechat/rclient.py,sha256=ayOtQ0CaF8ydXjirLdVed8FbpfdQVTKVSd0x4grs-pQ,22712
|
6
|
-
reywechat/rdb.py,sha256=
|
6
|
+
reywechat/rdb.py,sha256=84yKQ72uGjn5clpFOHLKhpmbQo5d1fo_s-RGGKtnpc8,50435
|
7
7
|
reywechat/rlog.py,sha256=TSA-_5pwlq0sUND2cnLDqXvdmAdMAkC7tXIz3WfJ7Xw,5259
|
8
8
|
reywechat/rreceive.py,sha256=YPMW99BDfgdv-6LdWE0C1NNQdh_FWVclcMMMioe74lo,50972
|
9
9
|
reywechat/rsend.py,sha256=MUpLeVeKc-9zswARqB3WLDmaOPLpAtN_u4788MHWoC8,20079
|
10
10
|
reywechat/rtrigger.py,sha256=c0peI208K2k2sOxtuszD8UMrhMrTGp0LMi_XE5ksJKg,4989
|
11
11
|
reywechat/rwechat.py,sha256=g0pbprMPv_qWb_lGFrPDAWsJO4vPSIgFLkw0Y28CZUo,4751
|
12
12
|
reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
|
13
|
-
reywechat-1.0.
|
14
|
-
reywechat-1.0.
|
15
|
-
reywechat-1.0.
|
16
|
-
reywechat-1.0.
|
13
|
+
reywechat-1.0.79.dist-info/METADATA,sha256=pK76U_EITXgg2f2kH3Wr0uEeuPyt8xcFHcqIlkp5LS4,1551
|
14
|
+
reywechat-1.0.79.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
reywechat-1.0.79.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
16
|
+
reywechat-1.0.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|