Skip to content

Commit

Permalink
do not sort pproc attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed May 19, 2024
1 parent 66d9b21 commit 998ca6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ai_models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,12 @@ def _print_request(self, verb, request, file=sys.stdout):
for k, v in sorted(request.items()):
if not isinstance(v, (list, tuple, set)):
v = [v]
v = [str(_) for _ in sorted(v)]

if k in ("area", "grid", "frame", "rotation", "bitmap"):
v = [str(_) for _ in v]
else:
v = [str(_) for _ in sorted(v)]

v = "/".join(v)
r.append(f"{k}={v}")

Expand Down

0 comments on commit 998ca6f

Please sign in to comment.