Fix sub tier rec.
This commit is contained in:
@@ -149,12 +149,13 @@ class SubathonComponent(cmds.Component):
|
||||
data = active.subathondata
|
||||
# In an active subathon
|
||||
pid = event_row['profileid']
|
||||
tier = int(sub_payload.tier)
|
||||
|
||||
if sub_payload.tier == 1000:
|
||||
if tier == 1000:
|
||||
mult = data.sub1_score
|
||||
elif sub_payload.tier == 2000:
|
||||
elif tier == 2000:
|
||||
mult = data.sub2_score
|
||||
elif sub_payload.tier == 3000:
|
||||
elif tier == 3000:
|
||||
mult = data.sub3_score
|
||||
else:
|
||||
raise ValueError(f"Unknown sub tier {sub_payload.tier}")
|
||||
@@ -184,11 +185,12 @@ class SubathonComponent(cmds.Component):
|
||||
# In an active subathon
|
||||
pid = event_row['profileid']
|
||||
|
||||
if gift_payload.tier == 1000:
|
||||
tier = int(gift_payload.tier)
|
||||
if tier == 1000:
|
||||
mult = data.sub1_score
|
||||
elif gift_payload.tier == 2000:
|
||||
elif tier == 2000:
|
||||
mult = data.sub2_score
|
||||
elif gift_payload.tier == 3000:
|
||||
elif tier == 3000:
|
||||
mult = data.sub3_score
|
||||
else:
|
||||
raise ValueError(f"Unknown sub tier {gift_payload.tier}")
|
||||
|
||||
Reference in New Issue
Block a user