From 8230f71f334837b094bb23244bddc6908f3324c8 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Sun, 25 Sep 2011 00:44:42 +0300 Subject: [PATCH] Add location_areas for locations that don't have them --- pokedex/data/csv/location_areas.csv | 261 ++++++++++++++++++++++++++++ pokedex/db/tables.py | 4 +- 2 files changed, 263 insertions(+), 2 deletions(-) diff --git a/pokedex/data/csv/location_areas.csv b/pokedex/data/csv/location_areas.csv index a471199..78fb730 100644 --- a/pokedex/data/csv/location_areas.csv +++ b/pokedex/data/csv/location_areas.csv @@ -530,3 +530,264 @@ id,location_id,game_index,identifier 573,530,13,1f 574,530,14,2f 575,530,15,3f +576,234,, +577,136,, +578,17,, +579,163,, +580,164,, +581,165,, +582,167,, +583,168,, +584,169,, +585,170,, +586,171,, +587,172,, +588,173,, +589,174,, +590,175,, +591,177,, +592,179,, +593,181,, +594,182,, +595,183,, +596,184,, +597,185,, +598,186,, +599,187,, +600,188,, +601,189,, +602,190,, +603,191,, +604,192,, +605,193,, +606,194,, +607,195,, +608,196,, +609,197,, +610,198,, +611,199,, +612,200,, +613,201,, +614,202,, +615,203,, +616,204,, +617,205,, +618,206,, +619,207,, +620,208,, +621,209,, +622,210,, +623,211,, +624,212,, +625,213,, +626,214,, +627,215,, +628,216,, +629,217,, +630,218,, +631,219,, +632,220,, +633,221,, +634,222,, +635,223,, +636,224,, +637,225,, +638,226,, +639,227,, +640,228,, +641,229,, +642,230,, +643,231,, +644,232,, +645,233,, +646,236,, +647,237,, +648,238,, +649,239,, +650,241,, +651,242,, +652,243,, +653,244,, +654,245,, +655,246,, +656,247,, +657,248,, +658,249,, +659,250,, +660,252,, +661,253,, +662,254,, +663,255,, +664,256,, +665,257,, +666,258,, +667,259,, +668,260,, +669,261,, +670,262,, +671,263,, +672,264,, +673,265,, +674,266,, +675,267,, +676,268,, +677,269,, +678,270,, +679,271,, +680,272,, +681,273,, +682,274,, +683,275,, +684,276,, +685,277,, +686,278,, +687,279,, +688,280,, +689,281,, +690,282,, +691,283,, +692,284,, +693,285,, +694,286,, +695,287,, +696,288,, +697,289,, +698,290,, +699,291,, +700,292,, +701,293,, +702,294,, +703,295,, +704,296,, +705,297,, +706,298,, +707,299,, +708,300,, +709,301,, +710,302,, +711,303,, +712,304,, +713,305,, +714,306,, +715,307,, +716,308,, +717,309,, +718,310,, +719,311,, +720,312,, +721,313,, +722,314,, +723,315,, +724,316,, +725,317,, +726,318,, +727,319,, +728,320,, +729,321,, +730,322,, +731,323,, +732,324,, +733,325,, +734,326,, +735,327,, +736,328,, +737,329,, +738,330,, +739,331,, +740,332,, +741,333,, +742,334,, +743,335,, +744,336,, +745,337,, +746,338,, +747,339,, +748,340,, +749,341,, +750,342,, +751,343,, +752,344,, +753,345,, +754,346,, +755,347,, +756,348,, +757,349,, +758,350,, +759,351,, +760,352,, +761,353,, +762,354,, +763,355,, +764,356,, +765,357,, +766,358,, +767,359,, +768,360,, +769,361,, +770,362,, +771,363,, +772,364,, +773,365,, +774,366,, +775,367,, +776,368,, +777,369,, +778,370,, +779,371,, +780,372,, +781,373,, +782,374,, +783,375,, +784,376,, +785,377,, +786,378,, +787,379,, +788,380,, +789,381,, +790,382,, +791,383,, +792,384,, +793,385,, +794,386,, +795,387,, +796,388,, +797,389,, +798,390,, +799,391,, +800,392,, +801,393,, +802,394,, +803,395,, +804,396,, +805,397,, +806,398,, +807,399,, +808,400,, +809,401,, +810,402,, +811,403,, +812,404,, +813,405,, +814,406,, +815,407,, +816,408,, +817,409,, +818,410,, +819,411,, +820,412,, +821,413,, +822,414,, +823,415,, +824,416,, +825,417,, +826,418,, +827,419,, +828,420,, +829,421,, +830,422,, +831,423,, +832,424,, +833,425,, +834,426,, +835,427,, +836,428,, diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 5dbf169..3652aea 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -693,8 +693,8 @@ class LocationArea(TableBase): info=dict(description="A numeric ID")) location_id = Column(Integer, ForeignKey('locations.id'), nullable=False, info=dict(description="ID of the location this area is part of")) - game_index = Column(Integer, nullable=False, - info=dict(description="ID the games ude for this area")) + game_index = Column(Integer, nullable=True, + info=dict(description="ID the games use for this area")) identifier = Column(Unicode(64), nullable=True, info=dict(description="An identifier", format='identifier'))