Skip to content

Commit 058ebcc

Browse files
author
Dave Johnston
committed
[SWAT-8089]: Python SDK doesnt update cache after segment change event
with the new segment, but it was comparing the version from the same object so it always failed. This meant that data might not be evaluted correctly until the SDK restarts.
1 parent 19adda5 commit 058ebcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

featureflags/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def is_segment_outdated(self, identifier: str,
210210
if segment and not isinstance(segment.version, Unset) and \
211211
not isinstance(new_segment, Unset) and \
212212
not isinstance(new_segment.version, Unset):
213-
return segment.version >= segment.version
213+
return segment.version >= new_segment.version
214214
return False
215215

216216

0 commit comments

Comments
 (0)