From fd1dcb97f17c4c479b6a8cc0edf0d08badbf9595 Mon Sep 17 00:00:00 2001 From: ro <44623254+rsakeys@users.noreply.github.com> Date: Wed, 5 Jun 2019 18:01:48 +0200 Subject: [PATCH] Update world.py - Calculate age attribute during world authentication --- houdini/handlers/login/world.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/houdini/handlers/login/world.py b/houdini/handlers/login/world.py index 1cebf71..ab9ba40 100644 --- a/houdini/handlers/login/world.py +++ b/houdini/handlers/login/world.py @@ -48,3 +48,5 @@ async def handle_login(p, credentials: WorldCredentials): p.data = data p.login_key = credentials.login_key await p.send_xt('l') + + p.age = (datetime.now() - p.data.registration_date).days