From 16adaea3550d2731a4af91014393bd99333a6636 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Feb 2020 23:56:55 +0100 Subject: [PATCH] commit --- rpgpack/commands/dndinfo.py | 2 -- rpgpack/tables/dndbattle.py | 19 +++++++++++++++++++ rpgpack/version.py | 3 +-- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 rpgpack/tables/dndbattle.py diff --git a/rpgpack/commands/dndinfo.py b/rpgpack/commands/dndinfo.py index f7176c2e..c1a1f6c9 100644 --- a/rpgpack/commands/dndinfo.py +++ b/rpgpack/commands/dndinfo.py @@ -13,8 +13,6 @@ class DndinfoCommand(Command): tables = {DndCharacter, DndActiveCharacter} async def run(self, args: CommandArgs, data: CommandData) -> None: - author = await data.get_author(error_if_none=True) - active_character = await get_active_character(data) char = active_character.character diff --git a/rpgpack/tables/dndbattle.py b/rpgpack/tables/dndbattle.py new file mode 100644 index 00000000..12b5ae63 --- /dev/null +++ b/rpgpack/tables/dndbattle.py @@ -0,0 +1,19 @@ +from sqlalchemy import * +from sqlalchemy.orm import * +from sqlalchemy.ext.declarative import declared_attr + + +class DndBattle: + __tablename__ = "dndbattle" + + @declared_attr + def id(self): + return Column(Integer, primary_key=True) + + @declared_attr + def name(self): + return Column(String, nullable=False) + + @declared_attr + def description(self): + return Column(String, nullable=False) diff --git a/rpgpack/version.py b/rpgpack/version.py index 011f319b..89550946 100644 --- a/rpgpack/version.py +++ b/rpgpack/version.py @@ -1,2 +1 @@ -semantic = "5.1.4" - +semantic = "5.2"