Update world.py

- Calculate age attribute during world authentication
This commit is contained in:
ro 2019-06-05 18:01:48 +02:00 committed by GitHub
parent 9e5b8f5365
commit fd1dcb97f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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