Skip to content

Commit

Permalink
Fix for error at CSV export (#1621)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Dec 23, 2021
1 parent 47c6c2a commit 3096a21
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from openatlas import app

VERSION = '6.6.3'
VERSION = '6.6.4'
DATABASE_VERSION = '6.6.0'
DEMO_MODE = False # If activated some options are disabled, login is pre filled
IS_UNIT_TEST = False
Expand Down
7 changes: 5 additions & 2 deletions install/upgrade/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ is working.

service apache2 restart

### 6.6.2 to 6.6.3
### 6.6.x to 6.6.4
A code base update (e.g. with git pull) and an Apache restart is sufficient.

### 6.6.1 to 6.6.2
### 6.6.x to 6.6.3
A code base update (e.g. with git pull) and an Apache restart is sufficient.

### 6.6.x to 6.6.2
A code base update (e.g. with git pull) and an Apache restart is sufficient.

### 6.6.0 to 6.6.1
Expand Down
2 changes: 1 addition & 1 deletion openatlas/models/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def csv_export(form: FlaskForm) -> None:
'id',
'name',
'description',
'class_code',
'cidoc_class_code',
"replace(to_char(begin_from, 'yyyy-mm-dd BC'), ' AD', '')",
"replace(to_char(begin_to, 'yyyy-mm-dd BC'), ' AD', '')",
'begin_comment',
Expand Down
4 changes: 3 additions & 1 deletion openatlas/util/changelog.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Changelog:

versions = {
'6.6.4': ['2021-12-23', {
'fix': {'1621': 'Error at CSV export'}}],
'6.6.3': ['2021-12-08', {
'fix': {'1616': 'Error at inserting an adminitrative unit'}}],
'fix': {'1616': 'Error at inserting an administrative unit'}}],
'6.6.2': ['2021-11-23', {
'fix': {'1609': 'Problem with types'}}],
'6.6.1': ['2021-11-20', {
Expand Down
9 changes: 8 additions & 1 deletion tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ def test_export(self) -> None:
follow_redirects=True,
data={
'zip': True,
'model_class': True,
'model_cidoc_class': True,
'model_cidoc_class_inheritance': True,
'model_entity': True,
'model_link': True,
'model_property': True,
'model_property_inheritance': True,
'gis_linestring': True,
'gis_polygon': True,
'gis_point': True,
'gis_format': 'wkt'})
assert b'Data was exported as CSV' in rv.data
Expand Down

0 comments on commit 3096a21

Please sign in to comment.