Skip to content

Commit c862382

Browse files
author
Matias Melograno
committed
updted changelog
1 parent ca3c33c commit c862382

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
8.1.4 (Oct XX, 2019)
1+
8.1.4 (Oct 14, 2019)
22
- Added logic to fetch multiple splits at once on get_treatments/get_treatments_with_config.
33
- Added flag `ipAddressesEnabled` into config to enable/disable sending machineName and machineIp when data is posted in headers.
44

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ factory = get_factory('YOUR_SDK_TYPE_API_KEY', config=config)
2222
try:
2323
factory.block_until_ready(5) # wait up to 5 seconds
2424
split = factory.client()
25-
print(split.get_treatment('CUSTOMER_ID', 'SPLIT_NAME'))
25+
treatment = split.get_treatment('CUSTOMER_ID', 'SPLIT_NAME')
26+
if treatment == "on":
27+
# insert code here to show on treatment
28+
elif treatment == "off":
29+
# insert code here to show off treatment
30+
else:
31+
# insert your control treatment code here
2632
except TimeoutException:
2733
# Now the user can choose whether to abort the whole execution, or just keep going
2834
# without a ready client, which if configured properly, should become ready at some point.

splitio/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '8.1.4-rc2'
1+
__version__ = '8.1.4'

0 commit comments

Comments
 (0)