Skip to content

Commit

Permalink
Task 07
Browse files Browse the repository at this point in the history
  • Loading branch information
OluwaninsolaAO committed Apr 23, 2023
1 parent 66c6b39 commit 70e71eb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions models/amenity.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
from sqlalchemy.orm import relationship
import os

if os.environ.get('HBNB_TYPE_STORAGE') == 'db':
from models.place import place_amenity


class Amenity(BaseModel, Base):
""" Amenties Class """
if os.environ.get('HBNB_TYPE_STORAGE') == 'db':
__tablename__ = 'amenities'

name = Column(String(128), nullable=False)
place_amenities = relationship("Place",
secondary=place_amenity,
backref="amenities")
else:
name = ""

0 comments on commit 70e71eb

Please sign in to comment.