Signal: fix indent

This commit is contained in:
Théophile Bastian 2024-03-01 14:09:48 +01:00
parent 9b14906462
commit 84471556d4

View file

@ -6,15 +6,16 @@ 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)