Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre GIRAUD authored and David Neudorfer committed Jan 25, 2017
1 parent c624137 commit 4cb6770
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osmtm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class ST_SetSRID(GenericFunction):
name = 'ST_SetSRID'
type = Geometry


DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension()))
Base = declarative_base()
make_translatable()
Expand Down Expand Up @@ -156,6 +157,7 @@ def as_dict(self):
"is_project_manager": self.is_project_manager
}


# task states
READY = 0
INVALIDATED = 1
Expand Down Expand Up @@ -433,6 +435,7 @@ def area_after_insert(mapper, connection, target):
values(centroid=ST_Centroid(target.geometry))
)


project_allowed_users = Table(
'project_allowed_users',
Base.metadata,
Expand All @@ -449,6 +452,7 @@ class PriorityArea(Base):
def __init__(self, geometry):
self.geometry = geometry


project_priority_areas = Table(
'project_priority_areas',
Base.metadata,
Expand Down Expand Up @@ -714,4 +718,5 @@ def default(self, obj): # pragma: no cover

return JSONEncoder.default(self, obj)


dumps = functools.partial(_dumps, cls=ExtendedJSONEncoder)
1 change: 1 addition & 0 deletions osmtm/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def populate_db():
transaction.commit()
DBSession.remove()


populate_db()


Expand Down

0 comments on commit 4cb6770

Please sign in to comment.