summaryrefslogtreecommitdiff
path: root/opendc/models/task_state.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-23 18:08:28 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-23 18:08:28 +0200
commit565ede0dc50c3b2df09c066ea3a28a4901cce547 (patch)
treee81a1bbed43d2eaf7e2be0bc61007963f807b62d /opendc/models/task_state.py
parent6f41be7d9c244b67bfa5ff72f1e90d18fa45b590 (diff)
Add DB handlers and rename to v2
Diffstat (limited to 'opendc/models/task_state.py')
-rw-r--r--opendc/models/task_state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/models/task_state.py b/opendc/models/task_state.py
index 8dca2d03..83cc6a62 100644
--- a/opendc/models/task_state.py
+++ b/opendc/models/task_state.py
@@ -26,7 +26,7 @@ class TaskState(Model):
task_states = []
statement = 'SELECT * FROM task_states WHERE experiment_id = %s AND tick = %s'
- results = database.fetchall(statement, (experiment_id, tick))
+ results = database.fetch_all(statement, (experiment_id, tick))
for row in results:
task_states.append(