Skip to content

Commit

Permalink
fix: update python2 to python3 syntax action,py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmubdyMutaikhan committed Jan 20, 2025
1 parent 81c69e2 commit 8fd15f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/translate/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def translate(context, data_dict):
if errors:
raise tk.ValidationError(errors)

translate_keys, translate_values = zip(*data["input"].items())
translate_keys, translate_values = list(zip(*list(data["input"].items())))

translate_req_dict= {
"text": list(translate_values),
Expand Down Expand Up @@ -45,3 +45,4 @@ def get_actions():
return {
'translate': translate,
}

0 comments on commit 8fd15f1

Please sign in to comment.