satori-python-server 0.14.0__tar.gz → 0.14.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-server
3
- Version: 0.14.0
3
+ Version: 0.14.1
4
4
  Summary: Satori Protocol SDK for python, specify server part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -27,7 +27,7 @@ classifiers = [
27
27
  "Programming Language :: Python :: 3.12",
28
28
  "Operating System :: OS Independent",
29
29
  ]
30
- version = "0.14.0"
30
+ version = "0.14.1"
31
31
 
32
32
  [project.license]
33
33
  text = "MIT"
@@ -160,7 +160,9 @@ class Server(Service, RouterMixin):
160
160
  if not provider.authenticate(token):
161
161
  return await ws.close(code=3000, reason="Unauthorized")
162
162
  logins.extend(await provider.get_logins())
163
- sequence = body.get("sequence", -1)
163
+ sequence = body.get("sequence")
164
+ if sequence is None:
165
+ sequence = -1
164
166
  await connection.send({"op": Opcode.READY, "body": {"logins": [lo.dump() for lo in logins]}})
165
167
  self.connections.append(connection)
166
168
  logger.debug(f"New connection: {id(connection)}")