Skip to content

Commit 765d38a

Browse files
committed
add pokemon varieties to pokedex
1 parent 2ee1c42 commit 765d38a

11 files changed

Lines changed: 739 additions & 164 deletions

‎data/v2/build.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,6 +1901,20 @@ def csv_record_to_objects(info):
19011901

19021902
build_generic((PokemonDexNumber,), "pokemon_dex_numbers.csv", csv_record_to_objects)
19031903

1904+
def csv_record_to_objects(info):
1905+
dex_number = PokemonDexNumber.objects.get(
1906+
pokedex_id=int(info[0]),
1907+
pokedex_number=int(info[1]),
1908+
)
1909+
1910+
yield PokemonDexNumberVariety(
1911+
pokemon_dex_number_id=dex_number.id,
1912+
pokemon_id=int(info[2]),
1913+
order=int(info[3]),
1914+
)
1915+
1916+
build_generic((PokemonDexNumberVariety,), "pokemon_dex_number_varieties.csv", csv_record_to_objects)
1917+
19041918
def csv_record_to_objects(info):
19051919
yield PokemonEggGroup(pokemon_species_id=int(info[0]), egg_group_id=int(info[1]))
19061920

Lines changed: 367 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,367 @@
1+
pokedex_id,pokedex_number,pokemon_id,order
2+
16,1,722,0
3+
16,2,723,0
4+
16,3,724,0
5+
16,4,725,0
6+
16,5,726,0
7+
16,6,727,0
8+
16,7,728,0
9+
16,8,729,0
10+
16,9,730,0
11+
16,10,731,0
12+
16,11,732,0
13+
16,12,733,0
14+
16,13,734,0
15+
16,14,735,0
16+
16,15,10091,0
17+
16,15,19,1
18+
16,16,10092,0
19+
16,16,20,1
20+
16,17,10,0
21+
16,18,11,0
22+
16,19,12,0
23+
16,20,165,0
24+
16,21,166,0
25+
16,22,167,0
26+
16,23,168,0
27+
16,24,172,0
28+
16,25,25,0
29+
16,25,10094,1
30+
16,25,10095,2
31+
16,25,10096,3
32+
16,25,10097,4
33+
16,25,10098,5
34+
16,25,10099,6
35+
16,26,10100,0
36+
16,26,26,1
37+
16,27,736,0
38+
16,28,737,0
39+
16,29,738,0
40+
16,30,438,0
41+
16,31,185,0
42+
16,32,440,0
43+
16,33,113,0
44+
16,34,242,0
45+
16,35,446,0
46+
16,36,143,0
47+
16,37,79,0
48+
16,38,80,0
49+
16,38,10071,1
50+
16,39,199,0
51+
16,40,278,0
52+
16,41,279,0
53+
16,42,63,0
54+
16,43,64,0
55+
16,44,65,0
56+
16,44,10037,1
57+
16,45,10107,0
58+
16,45,52,1
59+
16,46,10108,0
60+
16,46,53,1
61+
16,47,81,0
62+
16,48,82,0
63+
16,49,462,0
64+
16,50,10112,0
65+
16,50,88,1
66+
16,51,10113,0
67+
16,51,89,1
68+
16,52,58,0
69+
16,53,59,0
70+
16,54,96,0
71+
16,55,97,0
72+
16,56,296,0
73+
16,57,297,0
74+
16,58,235,0
75+
16,59,739,0
76+
16,60,740,0
77+
16,61,92,0
78+
16,62,93,0
79+
16,63,94,0
80+
16,63,10038,1
81+
16,64,425,0
82+
16,65,426,0
83+
16,66,200,0
84+
16,67,429,0
85+
16,68,41,0
86+
16,69,42,0
87+
16,70,169,0
88+
16,71,10105,0
89+
16,71,50,1
90+
16,72,10106,0
91+
16,72,51,1
92+
16,73,21,0
93+
16,74,22,0
94+
16,75,627,0
95+
16,76,628,0
96+
16,77,629,0
97+
16,78,630,0
98+
16,79,56,0
99+
16,80,57,0
100+
16,81,225,0
101+
16,82,10123,0
102+
16,82,10124,1
103+
16,82,741,2
104+
16,82,10125,3
105+
16,83,742,0
106+
16,84,743,0
107+
16,85,548,0
108+
16,86,549,0
109+
16,87,546,0
110+
16,88,547,0
111+
16,89,54,0
112+
16,90,55,0
113+
16,91,129,0
114+
16,92,130,0
115+
16,92,10041,1
116+
16,93,339,0
117+
16,94,340,0
118+
16,95,66,0
119+
16,96,67,0
120+
16,97,68,0
121+
16,98,524,0
122+
16,99,525,0
123+
16,100,526,0
124+
16,101,703,0
125+
16,102,302,0
126+
16,102,10066,1
127+
16,103,744,0
128+
16,104,745,0
129+
16,104,10126,1
130+
16,105,327,0
131+
16,106,72,0
132+
16,107,73,0
133+
16,108,456,0
134+
16,109,457,0
135+
16,110,746,0
136+
16,110,10127,1
137+
16,111,370,0
138+
16,112,222,0
139+
16,113,747,0
140+
16,114,748,0
141+
16,115,90,0
142+
16,116,91,0
143+
16,117,371,0
144+
16,118,372,0
145+
16,119,373,0
146+
16,119,10089,1
147+
16,120,506,0
148+
16,121,507,0
149+
16,122,508,0
150+
16,123,133,0
151+
16,124,134,0
152+
16,125,135,0
153+
16,126,136,0
154+
16,127,196,0
155+
16,128,197,0
156+
16,129,470,0
157+
16,130,471,0
158+
16,131,700,0
159+
16,132,749,0
160+
16,133,750,0
161+
16,134,174,0
162+
16,135,39,0
163+
16,136,40,0
164+
16,137,128,0
165+
16,138,241,0
166+
16,139,283,0
167+
16,140,284,0
168+
16,141,751,0
169+
16,142,752,0
170+
16,143,753,0
171+
16,144,754,0
172+
16,145,755,0
173+
16,146,756,0
174+
16,147,46,0
175+
16,148,47,0
176+
16,149,60,0
177+
16,150,61,0
178+
16,151,62,0
179+
16,152,186,0
180+
16,153,118,0
181+
16,154,119,0
182+
16,155,349,0
183+
16,156,350,0
184+
16,157,594,0
185+
16,158,661,0
186+
16,159,662,0
187+
16,160,663,0
188+
16,161,757,0
189+
16,162,758,0
190+
16,163,104,0
191+
16,164,10115,0
192+
16,164,105,1
193+
16,165,115,0
194+
16,165,10039,1
195+
16,166,240,0
196+
16,167,126,0
197+
16,168,467,0
198+
16,169,759,0
199+
16,170,760,0
200+
16,171,761,0
201+
16,172,762,0
202+
16,173,763,0
203+
16,174,764,0
204+
16,175,127,0
205+
16,175,10040,1
206+
16,176,765,0
207+
16,177,766,0
208+
16,178,704,0
209+
16,179,705,0
210+
16,180,706,0
211+
16,181,351,0
212+
16,181,10013,1
213+
16,181,10014,2
214+
16,181,10015,3
215+
16,182,767,0
216+
16,183,768,0
217+
16,184,120,0
218+
16,185,121,0
219+
16,186,769,0
220+
16,187,770,0
221+
16,188,408,0
222+
16,189,409,0
223+
16,190,410,0
224+
16,191,411,0
225+
16,192,566,0
226+
16,193,567,0
227+
16,194,564,0
228+
16,195,565,0
229+
16,196,708,0
230+
16,197,709,0
231+
16,198,299,0
232+
16,199,476,0
233+
16,200,771,0
234+
16,201,170,0
235+
16,202,171,0
236+
16,203,772,0
237+
16,204,774,0
238+
16,205,10118,0
239+
16,205,10119,1
240+
16,205,10120,2
241+
16,206,568,0
242+
16,207,569,0
243+
16,208,227,0
244+
16,209,132,0
245+
16,210,173,0
246+
16,211,35,0
247+
16,212,36,0
248+
16,213,774,0
249+
16,213,10130,1
250+
16,213,10131,2
251+
16,213,10132,3
252+
16,213,10133,4
253+
16,213,10134,5
254+
16,213,10135,6
255+
16,213,10136,7
256+
16,213,10137,8
257+
16,213,10138,9
258+
16,213,10139,10
259+
16,213,10140,11
260+
16,213,10141,12
261+
16,213,10142,13
262+
16,214,374,0
263+
16,215,375,0
264+
16,216,376,0
265+
16,216,10076,1
266+
16,217,137,0
267+
16,218,233,0
268+
16,219,474,0
269+
16,220,674,0
270+
16,221,675,0
271+
16,222,775,0
272+
16,223,324,0
273+
16,224,776,0
274+
16,225,777,0
275+
16,226,239,0
276+
16,227,125,0
277+
16,228,466,0
278+
16,229,10109,0
279+
16,229,74,1
280+
16,230,10110,0
281+
16,230,75,1
282+
16,231,10111,0
283+
16,231,76,1
284+
16,232,551,0
285+
16,233,552,0
286+
16,234,553,0
287+
16,235,328,0
288+
16,236,329,0
289+
16,237,330,0
290+
16,238,443,0
291+
16,239,444,0
292+
16,240,445,0
293+
16,240,10058,1
294+
16,241,707,0
295+
16,242,778,0
296+
16,243,779,0
297+
16,244,780,0
298+
16,245,359,0
299+
16,245,10057,1
300+
16,246,361,0
301+
16,247,362,0
302+
16,247,10074,0
303+
16,248,478,0
304+
16,249,215,0
305+
16,250,461,0
306+
16,251,10101,0
307+
16,251,27,1
308+
16,252,10102,0
309+
16,252,28,1
310+
16,253,10103,0
311+
16,253,37,1
312+
16,254,10104,0
313+
16,254,38,1
314+
16,255,582,0
315+
16,256,583,0
316+
16,257,584,0
317+
16,258,209,0
318+
16,259,210,0
319+
16,260,422,0
320+
16,261,423,0
321+
16,262,269,0
322+
16,263,781,0
323+
16,264,318,0
324+
16,265,319,0
325+
16,265,10070,1
326+
16,266,320,0
327+
16,267,321,0
328+
16,268,131,0
329+
16,269,102,0
330+
16,270,10114,1
331+
16,270,103,1
332+
16,271,782,0
333+
16,272,783,0
334+
16,273,784,0
335+
16,274,587,0
336+
16,275,123,0
337+
16,276,212,0
338+
16,276,10046,1
339+
16,277,198,0
340+
16,278,430,0
341+
16,279,447,0
342+
16,280,448,0
343+
16,280,10059,1
344+
16,281,147,0
345+
16,282,148,0
346+
16,283,149,0
347+
16,284,142,0
348+
16,284,10042,1
349+
16,285,785,0
350+
16,286,786,0
351+
16,287,787,0
352+
16,288,788,0
353+
16,289,789,0
354+
16,290,790,0
355+
16,291,791,0
356+
16,292,792,0
357+
16,293,793,0
358+
16,294,794,0
359+
16,295,795,0
360+
16,296,796,0
361+
16,297,797,0
362+
16,298,798,0
363+
16,299,799,0
364+
16,300,800,0
365+
16,301,801,0
366+
16,301,10147,1
367+
16,302,802,0

0 commit comments

Comments
 (0)