summaryrefslogtreecommitdiff
path: root/opendc/models/section.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-25 13:50:49 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-25 13:50:49 +0200
commita1589e75358558eada7ffc2efc7e3fa7160d233e (patch)
tree7889a2364292cd8b90fe996da7907bebf200d3dc /opendc/models/section.py
parent1f34466d41ba01a3dd36b0866696367d397daf7e (diff)
Reformat codebase and fix spelling errors
Diffstat (limited to 'opendc/models/section.py')
-rw-r--r--opendc/models/section.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/opendc/models/section.py b/opendc/models/section.py
index 5434cdfb..4e953eae 100644
--- a/opendc/models/section.py
+++ b/opendc/models/section.py
@@ -1,9 +1,9 @@
from opendc.models.model import Model
from opendc.models.path import Path
-from opendc.util import database, exceptions
+from opendc.util import exceptions
-class Section(Model):
+class Section(Model):
JSON_TO_PYTHON_DICT = {
'Section': {
'id': 'id',
@@ -23,7 +23,7 @@ class Section(Model):
# Get the Path
try:
- path = Path.from_primary_key((self.path_id,))
+ path = Path.from_primary_key((self.path_id,))
except exceptions.RowNotFoundError:
return False