diff --git a/subathon/subathon.py b/subathon/subathon.py index 53b3d7c..856eb1f 100644 --- a/subathon/subathon.py +++ b/subathon/subathon.py @@ -165,7 +165,7 @@ class ActiveSubathon: ) .join( "subscribe_events", - using=("eventid",), + using=("event_id",), join_type=JOINTYPE.INNER, ) .select(total=f"SUM({pointcol})") @@ -180,7 +180,7 @@ class ActiveSubathon: ) .join( "subscribe_message_events", - using=("eventid",), + using=("event_id",), join_type=JOINTYPE.INNER, ) .select(total=f"SUM({pointcol})") @@ -195,7 +195,7 @@ class ActiveSubathon: ) .join( "subscribe_gift_events", - using=("eventid",), + using=("event_id",), join_type=JOINTYPE.INNER, ) .select(total=f"SUM(gifted_count * ({pointcol}))") @@ -217,7 +217,7 @@ class ActiveSubathon: ) .join( "bits_events", - using=("eventid",), + using=("event_id",), join_type=JOINTYPE.INNER, ) .select(total="SUM(bits)")