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__)
|
||||
|
||||
|
||||
def signal_send(recipients: list[str], message: str) -> None:
|
||||
payload = {
|
||||
'jsonrpc': '2.0',
|
||||
'method': 'send',
|
||||
'params': {
|
||||
'message': message,
|
||||
'recipient': recipients,
|
||||
"jsonrpc": "2.0",
|
||||
"method": "send",
|
||||
"params": {
|
||||
"message": message,
|
||||
"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:
|
||||
signal_json.connect(configuration.SIGNAL_SOCKET)
|
||||
client.send(json.dumps(payload))
|
||||
client.send(json.dumps(payload))
|
||||
|
|
Loading…
Reference in a new issue