From e0beddc57309140094141a9a30f4c1b7ef77e1c4 Mon Sep 17 00:00:00 2001 From: "Lynn \"Zhorken\" Vaughan" Date: Thu, 4 Jul 2013 03:50:34 -0400 Subject: [PATCH] Add an is_main_series column to abilities. --- pokedex/data/csv/abilities.csv | 450 ++++++++++++++++----------------- pokedex/db/tables.py | 2 + 2 files changed, 227 insertions(+), 225 deletions(-) diff --git a/pokedex/data/csv/abilities.csv b/pokedex/data/csv/abilities.csv index 178b94e..1074860 100644 --- a/pokedex/data/csv/abilities.csv +++ b/pokedex/data/csv/abilities.csv @@ -1,225 +1,225 @@ -id,identifier,generation_id -1,stench,3 -2,drizzle,3 -3,speed-boost,3 -4,battle-armor,3 -5,sturdy,3 -6,damp,3 -7,limber,3 -8,sand-veil,3 -9,static,3 -10,volt-absorb,3 -11,water-absorb,3 -12,oblivious,3 -13,cloud-nine,3 -14,compoundeyes,3 -15,insomnia,3 -16,color-change,3 -17,immunity,3 -18,flash-fire,3 -19,shield-dust,3 -20,own-tempo,3 -21,suction-cups,3 -22,intimidate,3 -23,shadow-tag,3 -24,rough-skin,3 -25,wonder-guard,3 -26,levitate,3 -27,effect-spore,3 -28,synchronize,3 -29,clear-body,3 -30,natural-cure,3 -31,lightningrod,3 -32,serene-grace,3 -33,swift-swim,3 -34,chlorophyll,3 -35,illuminate,3 -36,trace,3 -37,huge-power,3 -38,poison-point,3 -39,inner-focus,3 -40,magma-armor,3 -41,water-veil,3 -42,magnet-pull,3 -43,soundproof,3 -44,rain-dish,3 -45,sand-stream,3 -46,pressure,3 -47,thick-fat,3 -48,early-bird,3 -49,flame-body,3 -50,run-away,3 -51,keen-eye,3 -52,hyper-cutter,3 -53,pickup,3 -54,truant,3 -55,hustle,3 -56,cute-charm,3 -57,plus,3 -58,minus,3 -59,forecast,3 -60,sticky-hold,3 -61,shed-skin,3 -62,guts,3 -63,marvel-scale,3 -64,liquid-ooze,3 -65,overgrow,3 -66,blaze,3 -67,torrent,3 -68,swarm,3 -69,rock-head,3 -70,drought,3 -71,arena-trap,3 -72,vital-spirit,3 -73,white-smoke,3 -74,pure-power,3 -75,shell-armor,3 -76,air-lock,3 -77,tangled-feet,4 -78,motor-drive,4 -79,rivalry,4 -80,steadfast,4 -81,snow-cloak,4 -82,gluttony,4 -83,anger-point,4 -84,unburden,4 -85,heatproof,4 -86,simple,4 -87,dry-skin,4 -88,download,4 -89,iron-fist,4 -90,poison-heal,4 -91,adaptability,4 -92,skill-link,4 -93,hydration,4 -94,solar-power,4 -95,quick-feet,4 -96,normalize,4 -97,sniper,4 -98,magic-guard,4 -99,no-guard,4 -100,stall,4 -101,technician,4 -102,leaf-guard,4 -103,klutz,4 -104,mold-breaker,4 -105,super-luck,4 -106,aftermath,4 -107,anticipation,4 -108,forewarn,4 -109,unaware,4 -110,tinted-lens,4 -111,filter,4 -112,slow-start,4 -113,scrappy,4 -114,storm-drain,4 -115,ice-body,4 -116,solid-rock,4 -117,snow-warning,4 -118,honey-gather,4 -119,frisk,4 -120,reckless,4 -121,multitype,4 -122,flower-gift,4 -123,bad-dreams,4 -124,pickpocket,5 -125,sheer-force,5 -126,contrary,5 -127,unnerve,5 -128,defiant,5 -129,defeatist,5 -130,cursed-body,5 -131,healer,5 -132,friend-guard,5 -133,weak-armor,5 -134,heavy-metal,5 -135,light-metal,5 -136,multiscale,5 -137,toxic-boost,5 -138,flare-boost,5 -139,harvest,5 -140,telepathy,5 -141,moody,5 -142,overcoat,5 -143,poison-touch,5 -144,regenerator,5 -145,big-pecks,5 -146,sand-rush,5 -147,wonder-skin,5 -148,analytic,5 -149,illusion,5 -150,imposter,5 -151,infiltrator,5 -152,mummy,5 -153,moxie,5 -154,justified,5 -155,rattled,5 -156,magic-bounce,5 -157,sap-sipper,5 -158,prankster,5 -159,sand-force,5 -160,iron-barbs,5 -161,zen-mode,5 -162,victory-star,5 -163,turboblaze,5 -164,teravolt,5 -10001,mountaineer,5 -10002,wave-rider,5 -10003,skater,5 -10004,thrust,5 -10005,perception,5 -10006,parry,5 -10007,instinct,5 -10008,dodge,5 -10009,jagged-edge,5 -10010,frostbite,5 -10011,tenacity,5 -10012,pride,5 -10013,deep-sleep,5 -10014,power-nap,5 -10015,spirit,5 -10016,warm-blanket,5 -10017,gulp,5 -10018,herbivore,5 -10019,sandpit,5 -10020,hot-blooded,5 -10021,medic,5 -10022,life-force,5 -10023,lunchbox,5 -10024,nurse,5 -10025,melee,5 -10026,sponge,5 -10027,bodyguard,5 -10028,hero,5 -10029,last-bastion,5 -10030,stealth,5 -10031,vanguard,5 -10032,nomad,5 -10033,sequence,5 -10034,grass-cloak,5 -10035,celebrate,5 -10036,lullaby,5 -10037,calming,5 -10038,daze,5 -10039,frighten,5 -10040,interference,5 -10041,mood-maker,5 -10042,confidence,5 -10043,fortune,5 -10044,bonanza,5 -10045,explode,5 -10046,omnipotent,5 -10047,share,5 -10048,black-hole,5 -10049,shadow-dash,5 -10050,sprint,5 -10051,disgust,5 -10052,high-rise,5 -10053,climber,5 -10054,flame-boost,5 -10055,aqua-boost,5 -10056,run-up,5 -10057,conqueror,5 -10058,shackle,5 -10059,decoy,5 -10060,shield,5 +id,identifier,generation_id,is_main_series +1,stench,3,1 +2,drizzle,3,1 +3,speed-boost,3,1 +4,battle-armor,3,1 +5,sturdy,3,1 +6,damp,3,1 +7,limber,3,1 +8,sand-veil,3,1 +9,static,3,1 +10,volt-absorb,3,1 +11,water-absorb,3,1 +12,oblivious,3,1 +13,cloud-nine,3,1 +14,compoundeyes,3,1 +15,insomnia,3,1 +16,color-change,3,1 +17,immunity,3,1 +18,flash-fire,3,1 +19,shield-dust,3,1 +20,own-tempo,3,1 +21,suction-cups,3,1 +22,intimidate,3,1 +23,shadow-tag,3,1 +24,rough-skin,3,1 +25,wonder-guard,3,1 +26,levitate,3,1 +27,effect-spore,3,1 +28,synchronize,3,1 +29,clear-body,3,1 +30,natural-cure,3,1 +31,lightningrod,3,1 +32,serene-grace,3,1 +33,swift-swim,3,1 +34,chlorophyll,3,1 +35,illuminate,3,1 +36,trace,3,1 +37,huge-power,3,1 +38,poison-point,3,1 +39,inner-focus,3,1 +40,magma-armor,3,1 +41,water-veil,3,1 +42,magnet-pull,3,1 +43,soundproof,3,1 +44,rain-dish,3,1 +45,sand-stream,3,1 +46,pressure,3,1 +47,thick-fat,3,1 +48,early-bird,3,1 +49,flame-body,3,1 +50,run-away,3,1 +51,keen-eye,3,1 +52,hyper-cutter,3,1 +53,pickup,3,1 +54,truant,3,1 +55,hustle,3,1 +56,cute-charm,3,1 +57,plus,3,1 +58,minus,3,1 +59,forecast,3,1 +60,sticky-hold,3,1 +61,shed-skin,3,1 +62,guts,3,1 +63,marvel-scale,3,1 +64,liquid-ooze,3,1 +65,overgrow,3,1 +66,blaze,3,1 +67,torrent,3,1 +68,swarm,3,1 +69,rock-head,3,1 +70,drought,3,1 +71,arena-trap,3,1 +72,vital-spirit,3,1 +73,white-smoke,3,1 +74,pure-power,3,1 +75,shell-armor,3,1 +76,air-lock,3,1 +77,tangled-feet,4,1 +78,motor-drive,4,1 +79,rivalry,4,1 +80,steadfast,4,1 +81,snow-cloak,4,1 +82,gluttony,4,1 +83,anger-point,4,1 +84,unburden,4,1 +85,heatproof,4,1 +86,simple,4,1 +87,dry-skin,4,1 +88,download,4,1 +89,iron-fist,4,1 +90,poison-heal,4,1 +91,adaptability,4,1 +92,skill-link,4,1 +93,hydration,4,1 +94,solar-power,4,1 +95,quick-feet,4,1 +96,normalize,4,1 +97,sniper,4,1 +98,magic-guard,4,1 +99,no-guard,4,1 +100,stall,4,1 +101,technician,4,1 +102,leaf-guard,4,1 +103,klutz,4,1 +104,mold-breaker,4,1 +105,super-luck,4,1 +106,aftermath,4,1 +107,anticipation,4,1 +108,forewarn,4,1 +109,unaware,4,1 +110,tinted-lens,4,1 +111,filter,4,1 +112,slow-start,4,1 +113,scrappy,4,1 +114,storm-drain,4,1 +115,ice-body,4,1 +116,solid-rock,4,1 +117,snow-warning,4,1 +118,honey-gather,4,1 +119,frisk,4,1 +120,reckless,4,1 +121,multitype,4,1 +122,flower-gift,4,1 +123,bad-dreams,4,1 +124,pickpocket,5,1 +125,sheer-force,5,1 +126,contrary,5,1 +127,unnerve,5,1 +128,defiant,5,1 +129,defeatist,5,1 +130,cursed-body,5,1 +131,healer,5,1 +132,friend-guard,5,1 +133,weak-armor,5,1 +134,heavy-metal,5,1 +135,light-metal,5,1 +136,multiscale,5,1 +137,toxic-boost,5,1 +138,flare-boost,5,1 +139,harvest,5,1 +140,telepathy,5,1 +141,moody,5,1 +142,overcoat,5,1 +143,poison-touch,5,1 +144,regenerator,5,1 +145,big-pecks,5,1 +146,sand-rush,5,1 +147,wonder-skin,5,1 +148,analytic,5,1 +149,illusion,5,1 +150,imposter,5,1 +151,infiltrator,5,1 +152,mummy,5,1 +153,moxie,5,1 +154,justified,5,1 +155,rattled,5,1 +156,magic-bounce,5,1 +157,sap-sipper,5,1 +158,prankster,5,1 +159,sand-force,5,1 +160,iron-barbs,5,1 +161,zen-mode,5,1 +162,victory-star,5,1 +163,turboblaze,5,1 +164,teravolt,5,1 +10001,mountaineer,5,0 +10002,wave-rider,5,0 +10003,skater,5,0 +10004,thrust,5,0 +10005,perception,5,0 +10006,parry,5,0 +10007,instinct,5,0 +10008,dodge,5,0 +10009,jagged-edge,5,0 +10010,frostbite,5,0 +10011,tenacity,5,0 +10012,pride,5,0 +10013,deep-sleep,5,0 +10014,power-nap,5,0 +10015,spirit,5,0 +10016,warm-blanket,5,0 +10017,gulp,5,0 +10018,herbivore,5,0 +10019,sandpit,5,0 +10020,hot-blooded,5,0 +10021,medic,5,0 +10022,life-force,5,0 +10023,lunchbox,5,0 +10024,nurse,5,0 +10025,melee,5,0 +10026,sponge,5,0 +10027,bodyguard,5,0 +10028,hero,5,0 +10029,last-bastion,5,0 +10030,stealth,5,0 +10031,vanguard,5,0 +10032,nomad,5,0 +10033,sequence,5,0 +10034,grass-cloak,5,0 +10035,celebrate,5,0 +10036,lullaby,5,0 +10037,calming,5,0 +10038,daze,5,0 +10039,frighten,5,0 +10040,interference,5,0 +10041,mood-maker,5,0 +10042,confidence,5,0 +10043,fortune,5,0 +10044,bonanza,5,0 +10045,explode,5,0 +10046,omnipotent,5,0 +10047,share,5,0 +10048,black-hole,5,0 +10049,shadow-dash,5,0 +10050,sprint,5,0 +10051,disgust,5,0 +10052,high-rise,5,0 +10053,climber,5,0 +10054,flame-boost,5,0 +10055,aqua-boost,5,0 +10056,run-up,5,0 +10057,conqueror,5,0 +10058,shackle,5,0 +10059,decoy,5,0 +10060,shield,5,0 diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 9291e89..7c66001 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -121,6 +121,8 @@ class Ability(TableBase): info=dict(description="An identifier", format='identifier')) generation_id = Column(Integer, ForeignKey('generations.id'), nullable=False, info=dict(description="The ID of the generation this ability was introduced in", detail=True)) + is_main_series = Column(Boolean, nullable=False, index=True, + info=dict(description="True iff the ability exists in the main series.")) create_translation_table('ability_names', Ability, 'names', relation_lazy='joined',