Skip to content

Commit

Permalink
Merge pull request #55 from gremlin/reports_bug_fix
Browse files Browse the repository at this point in the history
Reports bug fix
  • Loading branch information
khultman authored Apr 23, 2021
2 parents 7e1210c + dafba3f commit 2f612b0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.14.1
current_version = 0.14.3
commit = True
tag = True

Expand Down
13 changes: 12 additions & 1 deletion gremlinapi/gremlinapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,22 @@ def __init__(self):

@classmethod
def param_remap(cls, param):
'''
Remaps parameters into API format from pythonic format.
e.g.
"pythonic_parameter" -> "pythonicParameter"
"mixed_pythonicParameter" -> "mixedPythonicParameter"
"apiParameter" -> "apiParameter"
"APIParameter" -> "APIParameter"
'''
split_param = param.split("_")
new_param = ""
for s in split_param:
if s is split_param[0]:
new_param += s.lower()
new_param += s
else:
new_param += s.capitalize()
return new_param
Expand Down
3 changes: 2 additions & 1 deletion gremlinapi/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

log = logging.getLogger("GremlinAPI.client")

_version = "0.14.1"

_version = "0.14.3"


def get_version():
Expand Down

0 comments on commit 2f612b0

Please sign in to comment.