Skip to content

Commit b323233

Browse files
Indexing on location fields (#109)
* migration file * switch to opendata's url
1 parent 0b35ee1 commit b323233

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ ADD . /src/
1616
# Upgrade pip and setuptools
1717
RUN pip install -q -U pip setuptools
1818

19-
# Install feinstaub from codeforafrica
20-
RUN pip install -q git+https://github.com/CodeForAfrica/feinstaub-api
19+
# Install feinstaub from opendata-stuttgart
20+
RUN pip install -q git+https://github.com/opendata-stuttgart/feinstaub-api
2121

2222
# Install sensors.AFRICA-api and its dependencies
2323
RUN pip install -q -U .
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.29 on 2021-02-11 20:23
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('sensors', '0021_auto_20210204_1106'),
12+
]
13+
14+
operations = [
15+
migrations.AddIndex(
16+
model_name='sensorlocation',
17+
index=models.Index(fields=['country'], name='country_idx'),
18+
),
19+
migrations.AddIndex(
20+
model_name='sensorlocation',
21+
index=models.Index(fields=['city'], name='city_idx'),
22+
),
23+
]

0 commit comments

Comments
 (0)