mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-09-12 19:48:32 +00:00
Change staff parameter to use _wire_int_optional
(cherry picked from commit 64656bda1edc3fe03b6ad5e747c7afa3abca31d6)
This commit is contained in:
+1
-1
@@ -310,7 +310,7 @@ def note_from_wire(d: dict, time: float | None = None) -> Note:
|
|||||||
right_hand=_wire_int_optional(d.get("rh"), -1),
|
right_hand=_wire_int_optional(d.get("rh"), -1),
|
||||||
pick_direction=_wire_int_optional(d.get("pkd"), -1),
|
pick_direction=_wire_int_optional(d.get("pkd"), -1),
|
||||||
ignore=bool(d.get("ig", False)),
|
ignore=bool(d.get("ig", False)),
|
||||||
staff=int(d.get("stf", -1)),
|
staff=_wire_int_optional(d.get("stf"), -1),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user