From 7612277ee425f329c8524e80b323a64055212ee6 Mon Sep 17 00:00:00 2001 From: Philippe Matray Date: Sun, 23 Oct 2016 18:56:43 +0200 Subject: [PATCH] Add identifiers to item_fling_effects.csv --- pokedex/data/csv/item_fling_effects.csv | 16 ++++++++-------- pokedex/db/tables.py | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pokedex/data/csv/item_fling_effects.csv b/pokedex/data/csv/item_fling_effects.csv index a58fa57..3c9d273 100644 --- a/pokedex/data/csv/item_fling_effects.csv +++ b/pokedex/data/csv/item_fling_effects.csv @@ -1,8 +1,8 @@ -id -1 -2 -3 -4 -5 -6 -7 +id,identifier +1,badly-poison +2,burn +3,berry-effect +4,herb-effect +5,paralyze +6,poison +7,flinch diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index f02edd5..322d756 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -1058,6 +1058,9 @@ class ItemFlingEffect(TableBase): __singlename__ = 'item_fling_effect' id = Column(Integer, primary_key=True, nullable=False, doc=u"A numeric ID") + identifier = Column(Unicode(79), nullable=False, + doc=u"An identifier of this fling effect", + info=dict(format='identifier')) create_translation_table('item_fling_effect_prose', ItemFlingEffect, 'prose', effect = Column(UnicodeText, nullable=False,