removed class documentation
This commit is contained in:
parent
ecf27aef32
commit
7ffa0aa805
24
source/db.py
24
source/db.py
@ -19,14 +19,6 @@ Base = declarative_base()
|
|||||||
|
|
||||||
|
|
||||||
class User(Base):
|
class User(Base):
|
||||||
"""User Class
|
|
||||||
|
|
||||||
Args:
|
|
||||||
Base (_DeclarativeBase): Base class
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
string: including telegram_id, username and admin
|
|
||||||
"""
|
|
||||||
__tablename__ = 'user'
|
__tablename__ = 'user'
|
||||||
telegram_id = Column(Integer, primary_key=True)
|
telegram_id = Column(Integer, primary_key=True)
|
||||||
username = Column(String(50))
|
username = Column(String(50))
|
||||||
@ -37,14 +29,6 @@ class User(Base):
|
|||||||
|
|
||||||
|
|
||||||
class Score(Base):
|
class Score(Base):
|
||||||
"""Score Class
|
|
||||||
|
|
||||||
Args:
|
|
||||||
Base (_DeclarativeBase): Base class
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
string: including telegram_id, date, product_id, guess and score
|
|
||||||
"""
|
|
||||||
__tablename__ = 'score'
|
__tablename__ = 'score'
|
||||||
telegram_id = Column(Integer, ForeignKey('user.telegram_id'), primary_key=True)
|
telegram_id = Column(Integer, ForeignKey('user.telegram_id'), primary_key=True)
|
||||||
date = Column(DateTime, primary_key=True)
|
date = Column(DateTime, primary_key=True)
|
||||||
@ -57,14 +41,6 @@ class Score(Base):
|
|||||||
|
|
||||||
|
|
||||||
class Product(Base):
|
class Product(Base):
|
||||||
"""Product Class
|
|
||||||
|
|
||||||
Args:
|
|
||||||
Base (_DeclarativeBase): Base class
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
string: including product_id, price, image_link, title, description, date, todays_product
|
|
||||||
"""
|
|
||||||
__tablename__ = 'product'
|
__tablename__ = 'product'
|
||||||
product_id = Column(String(50), primary_key=True)
|
product_id = Column(String(50), primary_key=True)
|
||||||
price = Column(Float)
|
price = Column(Float)
|
||||||
|
Loading…
Reference in New Issue
Block a user