Skip to content

Commit

Permalink
Fixing pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed Aug 3, 2016
1 parent fea0f8c commit 3873b82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hypermap/aggregator/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ def has_valid_bbox(self):
else:
return True


def get_layer_dates(self):

def get_date_sign(a_date):
Expand Down Expand Up @@ -483,7 +482,8 @@ def get_date_sign(a_date):
# now we return all the other dates
for layerdate in self.layerdate_set.all().order_by('date'):
sdate = layerdate.date
if 'TO' not in sdate: # for now we skip ranges
# for now we skip ranges
if 'TO' not in sdate:
pydate = get_parsed_date(sdate)
if pydate:
date = []
Expand Down
2 changes: 1 addition & 1 deletion hypermap/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,4 @@ def str2bool(v):
# if DEBUG_SERVICES is set to True, only first DEBUG_LAYERS_NUMBER layers
# for each service are updated and checked
DEBUG_SERVICES = str2bool(os.getenv('DEBUG_SERVICES', 'False'))
DEBUG_LAYERS_NUMBER = int(os.getenv('DEBUG_LAYERS_NUMBER', '10'))
DEBUG_LAYERS_NUMBER = int(os.getenv('DEBUG_LAYERS_NUMBER', '20'))
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[flake8]
max-line-length = 120
exclude = migrations

0 comments on commit 3873b82

Please sign in to comment.