aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-23 16:01:09 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-23 16:01:09 +0100
commit69c54c4f4ab37ba72445b941ce1afd5e50b487f6 (patch)
tree1258651de9fa3795cbfef596f627228995179d15
parentBump version and update changelog (diff)
downloadAnnotateChange-69c54c4f4ab37ba72445b941ce1afd5e50b487f6.tar.gz
AnnotateChange-69c54c4f4ab37ba72445b941ce1afd5e50b487f6.zip
Add annotation time to download
-rw-r--r--CHANGELOG.md4
-rw-r--r--app/__init__.py2
-rw-r--r--app/admin/routes.py15
3 files changed, 18 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 78dd887..5f593ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## Version 0.4.4
+
+* Add annotation time to CSV download.
+
## Version 0.4.3
* Add configuration option for disabling registration.
diff --git a/app/__init__.py b/app/__init__.py
index d496605..48465b1 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-__version__ = "0.4.3"
+__version__ = "0.4.4"
import logging
import os
diff --git a/app/admin/routes.py b/app/admin/routes.py
index 98eb2fc..a6225ce 100644
--- a/app/admin/routes.py
+++ b/app/admin/routes.py
@@ -277,13 +277,24 @@ def download_annotations_csv():
)
# based on: https://stackoverflow.com/a/45111660/1154005
- header = ["DatasetID", "DatasetName", "UserID", "AnnotationIndex"]
+ header = [
+ "DatasetID",
+ "DatasetName",
+ "UserID",
+ "AnnotatedOn",
+ "AnnotationIndex",
+ ]
proxy = io.StringIO()
writer = clevercsv.writer(proxy)
writer.writerow(header)
for ann in annotations:
- row = [ann.task.dataset.id, ann.task.dataset.name, ann.task.user.id]
+ row = [
+ ann.task.dataset.id,
+ ann.task.dataset.name,
+ ann.task.user.id,
+ ann.task.annotated_on,
+ ]
if ann.cp_index is None:
row.append("no_cp")
else: