Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit dc89da7

Browse files
committed
fix gifted sub filtering bug
ignore the temporary py files that sometimes appear
1 parent abdb084 commit dc89da7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ __pycache__
33
currency data cache.json
44
/Logs
55
eventDefinitions.json
6-
config.json
6+
config.json
7+
[!.]*.py.[!.]*.py

Source/StreamlabsEvent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def PopulateNormalisedData(self):
123123
elif (self.handlerName == "twitch_account-bits"):
124124
self.valueType = "money"
125125
self.value = round(float(self.rawMessage["amount"]) / 100, 2)
126-
elif (self.handlerName == "twitch_account-subscription") or (self.handlerName == "twitch_account-subscription-gift"):
126+
elif (self.handlerName == "twitch_account-subscription") or (self.handlerName == "twitch_account-subscription_gift"):
127127
self.valueType = "money"
128128
subPlan = self.rawMessage["sub_plan"]
129129
if subPlan == "Prime" or subPlan == "1000":

0 commit comments

Comments
 (0)