chore: update py files

This commit is contained in:
retoor 2026-01-31 17:06:30 +01:00
parent a99e81aae0
commit 8b1ce1da67
3 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,14 @@
## Version 1.35.0 - 2026-01-31
update py files
**Changes:** 1 files, 2 lines
**Languages:** Python (2 lines)
## Version 1.34.0 - 2026-01-31

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "Snek"
version = "1.34.0"
version = "1.35.0"
readme = "README.md"
#license = { file = "LICENSE", content-type="text/markdown" }
description = "Snek Chat Application by Molodetz"

View File

@ -102,6 +102,8 @@ class UserService(BaseService):
model.email.value = email
model.username.value = username
model.password.value = await security.hash(password)
if not await self.count():
model["is_admin"] = True
if await self.save(model):
if model:
channel = await self.services.channel.ensure_public_channel(