Tunnel color changed to tunnel direction.

doc_update
Joey Hines 2018-09-13 12:08:36 -05:00
parent 407566a488
commit a1c937350e
1 changed files with 2 additions and 2 deletions

View File

@ -151,11 +151,11 @@ class Tunnel(SQL_Base):
location_id = Column(Integer, ForeignKey('geoffrey_locations.id', ondelete='CASCADE'))
location = relationship("Location", back_populates="tunnel", lazy="joined")
def __init__(self, owner, tunnel_color, tunnel_number, location=None):
def __init__(self, owner, tunnel_direction, tunnel_number, location=None):
try:
self.owner = owner
self.location = location
self.tunnel_direction = TunnelDirection.str_to_tunnel_dir(tunnel_color)
self.tunnel_direction = TunnelDirection.str_to_tunnel_dir(tunnel_direction)
self.tunnel_number = tunnel_number
except (ValueError, IndexError):
raise TunnelInitError