Signal: fix indent
This commit is contained in:
parent
9b14906462
commit
84471556d4
1 changed files with 8 additions and 7 deletions
|
@ -6,16 +6,17 @@ import json
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def signal_send(recipients: list[str], message: str) -> None:
|
def signal_send(recipients: list[str], message: str) -> None:
|
||||||
payload = {
|
payload = {
|
||||||
'jsonrpc': '2.0',
|
"jsonrpc": "2.0",
|
||||||
'method': 'send',
|
"method": "send",
|
||||||
'params': {
|
"params": {
|
||||||
'message': message,
|
"message": message,
|
||||||
'recipient': recipients,
|
"recipient": recipients,
|
||||||
},
|
},
|
||||||
'id': random.randint(0, (1<<24)),
|
"id": random.randint(0, (1 << 24)),
|
||||||
}
|
}
|
||||||
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as signal_json:
|
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as signal_json:
|
||||||
signal_json.connect(configuration.SIGNAL_SOCKET)
|
signal_json.connect(configuration.SIGNAL_SOCKET)
|
||||||
client.send(json.dumps(payload))
|
client.send(json.dumps(payload))
|
||||||
|
|
Loading…
Reference in a new issue