update(git|gitignore): add venv to gitignore
This commit is contained in:
parent
d5afdcc60b
commit
348a78e4b3
7 changed files with 141 additions and 11 deletions
cogs/utils
|
@ -14,7 +14,7 @@ class Config:
|
|||
return item in self._db
|
||||
|
||||
def __getitem__(self, item):
|
||||
return self._db[str(item)]
|
||||
return self._db[item]
|
||||
|
||||
def all(self) -> list:
|
||||
return self._db.sections()
|
||||
|
|
|
@ -3,4 +3,4 @@ Base = declarative_base()
|
|||
|
||||
from .lang import Lang
|
||||
from .warn import Warn
|
||||
# from .poll import Poll, Responses
|
||||
from .poll import Poll, Responses
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from . import Base
|
||||
from sqlalchemy import Column, Integer, BigInteger, JSON, ForeignKey, Boolean
|
||||
from sqlalchemy.orm import relationship
|
||||
from werkzeug.security import generate_password_hash, check_password_hash
|
||||
|
||||
Base = declarative_base()
|
||||
|
||||
|
||||
class Poll(Base):
|
||||
__tablename__ = 'polls'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue