mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2025-01-18 18:40:47 +00:00
fix str format
This commit is contained in:
parent
0c60fe3d5e
commit
2f82e0b1fc
@ -24,7 +24,7 @@ class Event:
|
|||||||
@pdirty.setter
|
@pdirty.setter
|
||||||
def pdirty(self, val: bool):
|
def pdirty(self, val: bool):
|
||||||
self.subs["pdirty"] = val
|
self.subs["pdirty"] = val
|
||||||
self.info(f"pdirty {'added to' if val else {'removed from'}}")
|
self.info(f"pdirty {'added to' if val else 'removed from'}")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ldirty(self) -> bool:
|
def ldirty(self) -> bool:
|
||||||
@ -33,7 +33,7 @@ class Event:
|
|||||||
@ldirty.setter
|
@ldirty.setter
|
||||||
def ldirty(self, val: bool):
|
def ldirty(self, val: bool):
|
||||||
self.subs["ldirty"] = val
|
self.subs["ldirty"] = val
|
||||||
self.info(f"ldirty {'added to' if val else {'removed from'}}")
|
self.info(f"ldirty {'added to' if val else 'removed from'}")
|
||||||
|
|
||||||
def get(self) -> list:
|
def get(self) -> list:
|
||||||
return [k for k, v in self.subs.items() if v]
|
return [k for k, v in self.subs.items() if v]
|
||||||
|
Loading…
Reference in New Issue
Block a user