mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-08 08:05:47 +02:00
Command to add memes
This commit is contained in:
parent
86dd6cb27b
commit
dbb570420b
9 changed files with 188 additions and 2 deletions
|
|
@ -30,6 +30,7 @@ __all__ = [
|
|||
"DadJoke",
|
||||
"Deadline",
|
||||
"Link",
|
||||
"MemeTemplate",
|
||||
"NightlyData",
|
||||
"Task",
|
||||
"UforaAnnouncement",
|
||||
|
|
@ -134,6 +135,17 @@ class Link(Base):
|
|||
url: str = Column(Text, nullable=False)
|
||||
|
||||
|
||||
class MemeTemplate(Base):
|
||||
"""A meme template for the Imgflip API"""
|
||||
|
||||
__tablename__ = "meme"
|
||||
|
||||
meme_id: int = Column(Integer, primary_key=True)
|
||||
name: str = Column(Text, nullable=False, unique=True)
|
||||
template_id: int = Column(Integer, nullable=False, unique=True)
|
||||
field_count: int = Column(Integer, nullable=False)
|
||||
|
||||
|
||||
class NightlyData(Base):
|
||||
"""Data for a user's Nightly stats"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue