Skip to content

Commit

Permalink
Type time with time zone (#5)
Browse files Browse the repository at this point in the history
* include new data type time with / without time zone

* include new data type time with / without time zone

Co-authored-by: Jieying Yan <[email protected]>
  • Loading branch information
jieyinybl and Jieying Yan authored Mar 31, 2020
1 parent f58a8b8 commit 3cc794a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.2.2 (2020-03-31)

- add column type: time with time zone and time without time zone

## 2.2.1 (2020-02-13)

- improve display of text arrays
Expand Down
3 changes: 2 additions & 1 deletion data_sets/data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def columns(self) -> {str: Column}:
type = 'text'
elif column_type in ['bigint', 'integer', 'real', 'smallint', 'double precision', 'numeric']:
type = 'number'
elif column_type in ['timestamp', 'timestamp with time zone', 'timestamp without time zone', 'date']:
elif column_type in ['timestamp', 'timestamp with time zone', 'timestamp without time zone',
'time with time zone', 'time without time zone', 'date']:
type = 'date'
elif column_type in ['json', 'jsonb']:
type = 'json'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='data-sets',
version='2.2.1',
version='2.2.2',

description='Flask based UI for displaying & segmenting a single database table',

Expand Down

0 comments on commit 3cc794a

Please sign in to comment.