fix: Typo in join column name

This commit is contained in:
2025-10-30 22:07:14 +10:00
parent aa87fd6f9f
commit 0c5250f09e

View File

@@ -165,7 +165,7 @@ class ActiveSubathon:
) )
.join( .join(
"subscribe_events", "subscribe_events",
using=("eventid",), using=("event_id",),
join_type=JOINTYPE.INNER, join_type=JOINTYPE.INNER,
) )
.select(total=f"SUM({pointcol})") .select(total=f"SUM({pointcol})")
@@ -180,7 +180,7 @@ class ActiveSubathon:
) )
.join( .join(
"subscribe_message_events", "subscribe_message_events",
using=("eventid",), using=("event_id",),
join_type=JOINTYPE.INNER, join_type=JOINTYPE.INNER,
) )
.select(total=f"SUM({pointcol})") .select(total=f"SUM({pointcol})")
@@ -195,7 +195,7 @@ class ActiveSubathon:
) )
.join( .join(
"subscribe_gift_events", "subscribe_gift_events",
using=("eventid",), using=("event_id",),
join_type=JOINTYPE.INNER, join_type=JOINTYPE.INNER,
) )
.select(total=f"SUM(gifted_count * ({pointcol}))") .select(total=f"SUM(gifted_count * ({pointcol}))")
@@ -217,7 +217,7 @@ class ActiveSubathon:
) )
.join( .join(
"bits_events", "bits_events",
using=("eventid",), using=("event_id",),
join_type=JOINTYPE.INNER, join_type=JOINTYPE.INNER,
) )
.select(total="SUM(bits)") .select(total="SUM(bits)")