Skip to content

Commit

Permalink
flake8 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed May 6, 2016
1 parent c8779f9 commit c9e486b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import csv
import re
import sys

from django.core.management.base import NoArgsCommand
from mapit.models import Area, Generation, CodeType
Expand All @@ -20,13 +21,13 @@ def handle_noargs(self, **options):
name = row[1]
si_title = row[3]
place = re.match('The (.*?) \(', si_title).group(1)

print '*', name, gss, place,

areas = list(Area.objects.filter(type__code='16W', name=name))
if len(areas) == 0:
areas = list(Area.objects.filter(type__code='16W', name=name.replace(' and ', ' & ')))

if len(areas) == 1:
area = areas[0]
elif len(areas) == 0:
Expand Down

0 comments on commit c9e486b

Please sign in to comment.