Browse Source

change content type to LongStr

master
Jonathan de Jong 2 years ago
parent
commit
b8d75009d2
  1. 4
      cogs/quote/__init__.py

4
cogs/quote/__init__.py

@ -5,7 +5,7 @@ import discord @@ -5,7 +5,7 @@ import discord
from discord import User, Message
from discord.ext.commands import command, group
from discord.utils import snowflake_time
from pony.orm import Database, PrimaryKey, Required, db_session, Optional
from pony.orm import Database, PrimaryKey, Required, db_session, Optional, LongStr
from pony.orm.core import Entity, commit, select
from snek import SNEK, SNEKContext, AbstractCog, UsesDatabase
@ -32,7 +32,7 @@ class QuoteCog(AbstractCog, UsesDatabase, name="Quote"): @@ -32,7 +32,7 @@ class QuoteCog(AbstractCog, UsesDatabase, name="Quote"):
author = Required(int, size=64)
channel = Required(int, size=64)
guild = Required(int, size=64)
content = Required(str, max_len=2000)
content = Required(LongStr)
_quote = Optional("Quote")
class Quote(db.Entity):

Loading…
Cancel
Save