Skip to content

Commit 998ca6f

Browse files
committed
do not sort pproc attributes
1 parent 66d9b21 commit 998ca6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ai_models/model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,12 @@ def _print_request(self, verb, request, file=sys.stdout):
326326
for k, v in sorted(request.items()):
327327
if not isinstance(v, (list, tuple, set)):
328328
v = [v]
329-
v = [str(_) for _ in sorted(v)]
329+
330+
if k in ("area", "grid", "frame", "rotation", "bitmap"):
331+
v = [str(_) for _ in v]
332+
else:
333+
v = [str(_) for _ in sorted(v)]
334+
330335
v = "/".join(v)
331336
r.append(f"{k}={v}")
332337

0 commit comments

Comments
 (0)