Mercurial > libervia-backend
comparison libervia/cli/cmd_notifications.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 8d361adf0ee1 |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
96 async def start(self): | 96 async def start(self): |
97 try: | 97 try: |
98 await self.host.bridge.notification_add( | 98 await self.host.bridge.notification_add( |
99 self.args.type, | 99 self.args.type, |
100 self.args.body_plain, | 100 self.args.body_plain, |
101 "", # TODO: self.args.body_rich or "", | 101 "", # TODO: self.args.body_rich or "", |
102 self.args.title or "", | 102 self.args.title or "", |
103 self.args.is_global, | 103 self.args.is_global, |
104 False, # TODO: self.args.requires_action, | 104 False, # TODO: self.args.requires_action, |
105 self.args.priority, | 105 self.args.priority, |
106 self.args.expire_at, | 106 self.args.expire_at, |
107 "", | 107 "", |
108 self.profile, | 108 self.profile, |
109 ) | 109 ) |
298 "id", | 298 "id", |
299 help=_("ID of the notification to delete"), | 299 help=_("ID of the notification to delete"), |
300 ) | 300 ) |
301 | 301 |
302 self.parser.add_argument( | 302 self.parser.add_argument( |
303 "-g", "--is-global", | 303 "-g", |
304 "--is-global", | |
304 action="store_true", | 305 action="store_true", |
305 help=_("true if the notification is a global one"), | 306 help=_("true if the notification is a global one"), |
306 ) | 307 ) |
307 | 308 |
308 self.parser.add_argument( | 309 self.parser.add_argument( |