Skip to content

Commit

Permalink
🐛 version 0.14.1
Browse files Browse the repository at this point in the history
resolve #15
  • Loading branch information
RF-Tar-Railt committed Sep 7, 2024
1 parent 4b93d1e commit cdc9959
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/satori/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
from .model import Upload as Upload
from .model import User as User

__version__ = "0.14.0"
__version__ = "0.14.1"
4 changes: 3 additions & 1 deletion src/satori/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ async def websocket_server_handler(self, ws: WebSocket):
if not provider.authenticate(token):
return await ws.close(code=3000, reason="Unauthorized")
logins.extend(await provider.get_logins())
sequence = body.get("sequence", -1)
sequence = body.get("sequence")
if sequence is None:
sequence = -1
await connection.send({"op": Opcode.READY, "body": {"logins": [lo.dump() for lo in logins]}})
self.connections.append(connection)
logger.debug(f"New connection: {id(connection)}")
Expand Down

0 comments on commit cdc9959

Please sign in to comment.