mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
style(zhenxun): 优化签到 SQL 查询格式
- 调整 SQL 查询的缩进和格式,提高可读性 - 没有修改实际的查询逻辑,仅优化代码结构
This commit is contained in:
parent
f45e5215ba
commit
4ac6c173fc
@ -52,11 +52,11 @@ async def _(bot: Bot):
|
|||||||
SIGN_SQL = """
|
SIGN_SQL = """
|
||||||
SELECT user_id, checkin_count, add_probability, specify_probability, impression
|
SELECT user_id, checkin_count, add_probability, specify_probability, impression
|
||||||
FROM (
|
FROM (
|
||||||
SELECT
|
SELECT
|
||||||
t1.user_id,
|
t1.user_id,
|
||||||
t1.checkin_count,
|
t1.checkin_count,
|
||||||
t1.add_probability,
|
t1.add_probability,
|
||||||
t1.specify_probability,
|
t1.specify_probability,
|
||||||
t1.impression,
|
t1.impression,
|
||||||
ROW_NUMBER() OVER(PARTITION BY t1.user_id ORDER BY t1.impression DESC) AS rn
|
ROW_NUMBER() OVER(PARTITION BY t1.user_id ORDER BY t1.impression DESC) AS rn
|
||||||
FROM sign_group_users t1
|
FROM sign_group_users t1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user