summaryrefslogtreecommitdiffstats
path: root/bijoe/schemas.py
diff options
context:
space:
mode:
Diffstat (limited to 'bijoe/schemas.py')
-rw-r--r--bijoe/schemas.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bijoe/schemas.py b/bijoe/schemas.py
index 6dd5bb5..e4a2fba 100644
--- a/bijoe/schemas.py
+++ b/bijoe/schemas.py
@@ -143,7 +143,7 @@ class Dimension(Base):
'join': [str],
'value': str,
'value_label': str,
- 'order_by': str,
+ 'order_by': [str],
'group_by': str,
'filter': bool,
'members_query': str,
@@ -202,7 +202,7 @@ class Dimension(Base):
filter_value='EXTRACT(dow from %s)' % filter_value,
filter_in_join=self.filter_in_join,
value='EXTRACT(dow from %s)' % self.value,
- order_by='(EXTRACT(dow from %s) + 6)::integer %% 7' % self.value,
+ order_by=['(EXTRACT(dow from %s) + 6)::integer %% 7' % self.value],
value_label='to_char(date_trunc(\'week\', current_date)::date '
'+ EXTRACT(dow from %s)::integer - 1, \'TMday\')' % self.value,
filter=False),
@@ -218,8 +218,8 @@ class Dimension(Base):
% (self.value, self.value),
group_by='EXTRACT(isoyear from %s), EXTRACT(week from %s)' % (self.value,
self.value),
- order_by='EXTRACT(isoyear from %s), EXTRACT(week from %s)' % (self.value,
- self.value),
+ order_by=['EXTRACT(isoyear from %s), EXTRACT(week from %s)' % (self.value,
+ self.value)],
filter=False)
]
return [self]