add type
This commit is contained in:
parent
2db127522d
commit
6ce2611c1b
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ for l in locations:
|
||||||
l['modified'] = datetime.fromtimestamp(int(l['modified']))
|
l['modified'] = datetime.fromtimestamp(int(l['modified']))
|
||||||
l['alternativeNames'] = tuple(l['alternativeNames'])
|
l['alternativeNames'] = tuple(l['alternativeNames'])
|
||||||
l['geoname'] = l['name']
|
l['geoname'] = l['name']
|
||||||
|
l['type'] = 'city'
|
||||||
p, c = Place.objects.get_or_create(name=l['name'])
|
p, c = Place.objects.get_or_create(name=l['name'])
|
||||||
for key in l:
|
for key in l:
|
||||||
if key != 'annotations':
|
if key != 'annotations':
|
||||||
|
|
Loading…
Reference in a new issue