Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 4cb6770

Browse files
Pierre GIRAUDDavid Neudorfer
authored andcommitted
Fix flake8 errors
1 parent c624137 commit 4cb6770

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

osmtm/models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class ST_SetSRID(GenericFunction):
104104
name = 'ST_SetSRID'
105105
type = Geometry
106106

107+
107108
DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension()))
108109
Base = declarative_base()
109110
make_translatable()
@@ -156,6 +157,7 @@ def as_dict(self):
156157
"is_project_manager": self.is_project_manager
157158
}
158159

160+
159161
# task states
160162
READY = 0
161163
INVALIDATED = 1
@@ -433,6 +435,7 @@ def area_after_insert(mapper, connection, target):
433435
values(centroid=ST_Centroid(target.geometry))
434436
)
435437

438+
436439
project_allowed_users = Table(
437440
'project_allowed_users',
438441
Base.metadata,
@@ -449,6 +452,7 @@ class PriorityArea(Base):
449452
def __init__(self, geometry):
450453
self.geometry = geometry
451454

455+
452456
project_priority_areas = Table(
453457
'project_priority_areas',
454458
Base.metadata,
@@ -714,4 +718,5 @@ def default(self, obj): # pragma: no cover
714718

715719
return JSONEncoder.default(self, obj)
716720

721+
717722
dumps = functools.partial(_dumps, cls=ExtendedJSONEncoder)

osmtm/tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def populate_db():
8080
transaction.commit()
8181
DBSession.remove()
8282

83+
8384
populate_db()
8485

8586

0 commit comments

Comments
 (0)