mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 22:13:00 +00:00
Edit spacing in orm.py
This commit is contained in:
@@ -294,7 +294,6 @@ class Proxy(Base):
|
||||
yield f
|
||||
|
||||
|
||||
|
||||
class Hub(Base):
|
||||
"""Bring it all together at the hub.
|
||||
|
||||
@@ -329,6 +328,7 @@ user_group_map = Table('user_group_map', Base.metadata,
|
||||
Column('group_id', ForeignKey('groups.id'), primary_key=True),
|
||||
)
|
||||
|
||||
|
||||
class Group(Base):
|
||||
"""User Groups"""
|
||||
__tablename__ = 'groups'
|
||||
@@ -340,6 +340,7 @@ class Group(Base):
|
||||
return "<%s %s (%i users)>" % (
|
||||
self.__class__.__name__, self.name, len(self.users)
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def find(cls, db, name):
|
||||
"""Find a group by name.
|
||||
@@ -446,9 +447,9 @@ class UserServer(Base):
|
||||
server = relationship(Server, backref=backref('server_to_users', cascade='all, delete-orphan')
|
||||
)
|
||||
|
||||
__table_args__ = (
|
||||
UniqueConstraint('_server_id'),
|
||||
Index('server_user_index', '_server_id', '_user_id'),)
|
||||
__table_args__ = (UniqueConstraint('_server_id'),
|
||||
Index('server_user_index', '_server_id', '_user_id'),
|
||||
)
|
||||
|
||||
def __repr__(self):
|
||||
return "<{cls}({name}@{ip}:{port})>".format(
|
||||
|
Reference in New Issue
Block a user