Skip to content

Commit

Permalink
add a helper to read a path from a token
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Aug 5, 2019
1 parent ac59231 commit 00064a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions traph/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,8 @@ def parse_pagination_token(token):
i, b64_path = token.split('#')

return int(i), base64_to_int(b64_path)


def explain_token(token):
_, int_token = parse_pagination_token(token)
return base4_to_ops(int_token)

0 comments on commit 00064a5

Please sign in to comment.