reywechat 1.0.37__py3-none-any.whl → 1.0.38__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 +19 -17
- {reywechat-1.0.37.dist-info → reywechat-1.0.38.dist-info}/METADATA +1 -1
- {reywechat-1.0.37.dist-info → reywechat-1.0.38.dist-info}/RECORD +5 -5
- {reywechat-1.0.37.dist-info → reywechat-1.0.38.dist-info}/WHEEL +0 -0
- {reywechat-1.0.37.dist-info → reywechat-1.0.38.dist-info}/licenses/LICENSE +0 -0
reywechat/rdb.py
CHANGED
@@ -440,6 +440,7 @@ class WeChatDatabase(BaseWeChat):
|
|
440
440
|
],
|
441
441
|
'comment': 'Message send table.'
|
442
442
|
}
|
443
|
+
|
443
444
|
]
|
444
445
|
|
445
446
|
## View stats.
|
@@ -453,7 +454,7 @@ class WeChatDatabase(BaseWeChat):
|
|
453
454
|
'name': 'count_receive',
|
454
455
|
'select': (
|
455
456
|
'SELECT COUNT(1)\n'
|
456
|
-
'FROM `wechat`.`message_receive`'
|
457
|
+
f'FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.message_receive']}`'
|
457
458
|
),
|
458
459
|
'comment': 'Message receive count.'
|
459
460
|
},
|
@@ -461,7 +462,7 @@ class WeChatDatabase(BaseWeChat):
|
|
461
462
|
'name': 'count_send',
|
462
463
|
'select': (
|
463
464
|
'SELECT COUNT(1)\n'
|
464
|
-
'FROM `wechat`.`message_send`\n'
|
465
|
+
f'FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.message_send']}`\n'
|
465
466
|
'WHERE `status` = 2'
|
466
467
|
),
|
467
468
|
'comment': 'Message send count.'
|
@@ -470,7 +471,7 @@ class WeChatDatabase(BaseWeChat):
|
|
470
471
|
'name': 'count_user',
|
471
472
|
'select': (
|
472
473
|
'SELECT COUNT(1)\n'
|
473
|
-
'FROM `wechat`.`contact_user`'
|
474
|
+
f'FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_user']}`'
|
474
475
|
),
|
475
476
|
'comment': 'Contact user count.'
|
476
477
|
},
|
@@ -478,7 +479,7 @@ class WeChatDatabase(BaseWeChat):
|
|
478
479
|
'name': 'count_room',
|
479
480
|
'select': (
|
480
481
|
'SELECT COUNT(1)\n'
|
481
|
-
'FROM `wechat`.`contact_room`'
|
482
|
+
f'FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room']}`'
|
482
483
|
),
|
483
484
|
'comment': 'Contact room count.'
|
484
485
|
},
|
@@ -486,7 +487,7 @@ class WeChatDatabase(BaseWeChat):
|
|
486
487
|
'name': 'count_room_user',
|
487
488
|
'select': (
|
488
489
|
'SELECT COUNT(1)\n'
|
489
|
-
'FROM `wechat`.`contact_room_user`'
|
490
|
+
f'FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room_user']}`'
|
490
491
|
),
|
491
492
|
'comment': 'Contact room user count.'
|
492
493
|
},
|
@@ -494,7 +495,7 @@ class WeChatDatabase(BaseWeChat):
|
|
494
495
|
'name': 'last_time_receive',
|
495
496
|
'select': (
|
496
497
|
'SELECT MAX(`message_time`)\n'
|
497
|
-
'FROM `wechat`.`message_receive`'
|
498
|
+
f'FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.message_receive']}`'
|
498
499
|
),
|
499
500
|
'comment': 'Message last receive time.'
|
500
501
|
},
|
@@ -502,13 +503,14 @@ class WeChatDatabase(BaseWeChat):
|
|
502
503
|
'name': 'last_time_send',
|
503
504
|
'select': (
|
504
505
|
'SELECT MAX(`status_time`)\n'
|
505
|
-
'FROM `wechat`.`message_send`\n'
|
506
|
+
f'FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.message_send']}`\n'
|
506
507
|
'WHERE `status` = 2'
|
507
508
|
),
|
508
509
|
'comment': 'Message last send time.'
|
509
510
|
}
|
510
511
|
]
|
511
512
|
}
|
513
|
+
|
512
514
|
]
|
513
515
|
|
514
516
|
# Build.
|
@@ -560,12 +562,12 @@ class WeChatDatabase(BaseWeChat):
|
|
560
562
|
## Update.
|
561
563
|
if user_ids == []:
|
562
564
|
sql = (
|
563
|
-
'UPDATE `wechat`.`contact_user`\n'
|
565
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_user']}`\n'
|
564
566
|
'SET `contact` = 0'
|
565
567
|
)
|
566
568
|
else:
|
567
569
|
sql = (
|
568
|
-
'UPDATE `wechat`.`contact_user`\n'
|
570
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_user']}`\n'
|
569
571
|
'SET `contact` = 0\n'
|
570
572
|
'WHERE `user_id` NOT IN :user_ids'
|
571
573
|
)
|
@@ -616,12 +618,12 @@ class WeChatDatabase(BaseWeChat):
|
|
616
618
|
## Update.
|
617
619
|
if room_ids == []:
|
618
620
|
sql = (
|
619
|
-
'UPDATE `wechat`.`contact_room`\n'
|
621
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room']}`\n'
|
620
622
|
'SET `contact` = 0'
|
621
623
|
)
|
622
624
|
else:
|
623
625
|
sql = (
|
624
|
-
'UPDATE `wechat`.`contact_room`\n'
|
626
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room']}`\n'
|
625
627
|
'SET `contact` = 0\n'
|
626
628
|
'WHERE `room_id` NOT IN :room_ids'
|
627
629
|
)
|
@@ -694,18 +696,18 @@ class WeChatDatabase(BaseWeChat):
|
|
694
696
|
## Update.
|
695
697
|
if room_user_ids == []:
|
696
698
|
sql = (
|
697
|
-
'UPDATE `wechat`.`contact_room_user`\n'
|
699
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room_user']}`\n'
|
698
700
|
'SET `contact` = 0'
|
699
701
|
)
|
700
702
|
elif room_id is None:
|
701
703
|
sql = (
|
702
|
-
'UPDATE `wechat`.`contact_room_user`\n'
|
704
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room_user']}`\n'
|
703
705
|
'SET `contact` = 0\n'
|
704
706
|
"WHERE CONCAT(`room_id`, ',', `user_id`) NOT IN :room_user_ids"
|
705
707
|
)
|
706
708
|
else:
|
707
709
|
sql = (
|
708
|
-
'UPDATE `wechat`.`contact_room_user`\n'
|
710
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room_user']}`\n'
|
709
711
|
'SET `contact` = 0\n'
|
710
712
|
'WHERE (\n'
|
711
713
|
' `room_id` = :room_id\n'
|
@@ -1043,7 +1045,7 @@ class WeChatDatabase(BaseWeChat):
|
|
1043
1045
|
for row in table
|
1044
1046
|
]
|
1045
1047
|
sql = (
|
1046
|
-
'UPDATE `wechat`.`message_send`\n'
|
1048
|
+
f'UPDATE `{self.path_names['wechat']}`.`{self.path_names['wechat.message_send']}`\n'
|
1047
1049
|
'SET `status` = 1\n'
|
1048
1050
|
'WHERE `send_id` IN :send_ids'
|
1049
1051
|
)
|
@@ -1122,13 +1124,13 @@ class WeChatDatabase(BaseWeChat):
|
|
1122
1124
|
sql = (
|
1123
1125
|
'SELECT (\n'
|
1124
1126
|
' SELECT `valid`\n'
|
1125
|
-
' FROM `wechat`.`contact_room_user`\n'
|
1127
|
+
f' FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room_user']}`\n'
|
1126
1128
|
' WHERE `room_id` = :room_id AND `user_id` = :user_id\n'
|
1127
1129
|
' LIMIT 1\n'
|
1128
1130
|
') AS `valid`\n'
|
1129
1131
|
'FROM (\n'
|
1130
1132
|
' SELECT `valid`\n'
|
1131
|
-
' FROM `wechat`.`contact_room`\n'
|
1133
|
+
f' FROM `{self.path_names['wechat']}`.`{self.path_names['wechat.contact_room']}`\n'
|
1132
1134
|
' WHERE `room_id` = :room_id\n'
|
1133
1135
|
' LIMIT 1\n'
|
1134
1136
|
') AS `a`\n'
|
@@ -3,7 +3,7 @@ reywechat/rall.py,sha256=zEW-mLL2uP8aT2_foCMFGmMi_3RCrGl8qutnSVkmY1E,397
|
|
3
3
|
reywechat/rbase.py,sha256=0NunIUIXra2ML2N6odwMk5oENTE0r6VSBHWXUvgI-lc,1124
|
4
4
|
reywechat/rcache.py,sha256=Hh_HE-t_KUMlrz4gEFPh1AjmhnrSgH520IFJPumWb7A,908
|
5
5
|
reywechat/rclient.py,sha256=MEvQB3pHb5ORukKbKntalRtFcKIOP9BGtDsMt5ihQfM,22524
|
6
|
-
reywechat/rdb.py,sha256=
|
6
|
+
reywechat/rdb.py,sha256=i4YvgKPU9Z5M7N6-X8L93A8qa24FyFS-YkNLcGAC6Y8,42338
|
7
7
|
reywechat/rlog.py,sha256=x4WFLNoeKqGjPVoI81ZZNEd9ctdYToSg5hEFuESmCQY,5254
|
8
8
|
reywechat/rreceive.py,sha256=RkUwPsWz6k_Ua3ovrbXRMVajeNOJQqvpPXz_CvJyUPQ,35162
|
9
9
|
reywechat/rschedule.py,sha256=bZEEZV3K4zrJvupe1Eq6kGR7kunbVq5dfGnqFKYF3JI,1857
|
@@ -11,7 +11,7 @@ reywechat/rsend.py,sha256=UmdKCOb1cPKEmBPHt9htjxB8fPyi5jW5pGwpRQIZdKA,13720
|
|
11
11
|
reywechat/rtrigger.py,sha256=n8kUNovh62r7crlXrp33uaKvbILT-wcfvUqeyGt7YhM,4956
|
12
12
|
reywechat/rwechat.py,sha256=Iir9EC0E3TmLElPf6k_Tkc7lZOr4uO1X9bpOZ0t0EV0,4884
|
13
13
|
reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
|
14
|
-
reywechat-1.0.
|
15
|
-
reywechat-1.0.
|
16
|
-
reywechat-1.0.
|
17
|
-
reywechat-1.0.
|
14
|
+
reywechat-1.0.38.dist-info/METADATA,sha256=pLvQOMbIjktqYHZNIxl6hpvffAbFvcfqXMHheIJgWQI,1551
|
15
|
+
reywechat-1.0.38.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
16
|
+
reywechat-1.0.38.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
17
|
+
reywechat-1.0.38.dist-info/RECORD,,
|
File without changes
|
File without changes
|