mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
PEP-8
This commit is contained in:
parent
4c07c63f9b
commit
ccf3b8676a
@ -22,6 +22,9 @@ class RoomMixin:
|
|||||||
self.tables = {}
|
self.tables = {}
|
||||||
self.waddles = {}
|
self.waddles = {}
|
||||||
|
|
||||||
|
self.id = None
|
||||||
|
self.max_users = None
|
||||||
|
|
||||||
async def add_penguin(self, p):
|
async def add_penguin(self, p):
|
||||||
if len(self.penguins_by_id) >= self.max_users and not p.moderator:
|
if len(self.penguins_by_id) >= self.max_users and not p.moderator:
|
||||||
return await p.send_error(210)
|
return await p.send_error(210)
|
||||||
@ -118,8 +121,8 @@ class Room(db.Model, RoomMixin):
|
|||||||
stamp_group = db.Column(db.ForeignKey('stamp_group.id', ondelete='CASCADE', onupdate='CASCADE'))
|
stamp_group = db.Column(db.ForeignKey('stamp_group.id', ondelete='CASCADE', onupdate='CASCADE'))
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
RoomMixin.__init__(self, *args, **kwargs)
|
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
RoomMixin.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
self.blackhole_penguins = {}
|
self.blackhole_penguins = {}
|
||||||
|
|
||||||
@ -170,8 +173,10 @@ class PenguinIglooRoom(db.Model, RoomMixin):
|
|||||||
stamp_group = None
|
stamp_group = None
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
RoomMixin.__init__(self, *args, **kwargs)
|
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
RoomMixin.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
|
self.max_users = 80
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def external_id(self):
|
def external_id(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user