Skip to content

Commit

Permalink
Add missing branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Sep 18, 2024
1 parent b062b24 commit efb572f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ def get_next_version(self, current: Optional[str], channel: ChannelProtocol) ->
"""
if current is None:
current_v = 0
elif isinstance(current, int):
current_v = current
else:
current_v = int(current.split(".")[0])
next_v = current_v + 1
Expand Down
2 changes: 2 additions & 0 deletions libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ def get_next_version(self, current: Optional[str], channel: ChannelProtocol) ->
"""
if current is None:
current_v = 0
elif isinstance(current, int):
current_v = current
else:
current_v = int(current.split(".")[0])
next_v = current_v + 1
Expand Down

0 comments on commit efb572f

Please sign in to comment.