From 9bb32d94d277d0edaf485b541ecd1a95e2206f1b Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 21 Jun 2019 01:40:12 +0100 Subject: [PATCH] Room object now uses await p.string syntax --- houdini/data/room.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/houdini/data/room.py b/houdini/data/room.py index 18a7c3e..992884d 100644 --- a/houdini/data/room.py +++ b/houdini/data/room.py @@ -31,7 +31,7 @@ class Room(db.Model): p.room = self await p.send_xt('jr', self.id, await self.get_string()) - await self.send_xt('ap', await p.server.penguin_string_compiler.compile(p)) + await self.send_xt('ap', await p.string) async def remove_penguin(self, p): await self.send_xt('rp', p.data.id) @@ -40,7 +40,7 @@ class Room(db.Model): p.room = None async def get_string(self): - return '%'.join([await p.server.penguin_string_compiler.compile(p) for p in self.penguins]) + return '%'.join([await p.string for p in self.penguins]) async def send_xt(self, *data): for penguin in self.penguins: