0001-engine-get-fact-table-from-configuration-41814.patch
bijoe/engine.py | ||
---|---|---|
309 | 309 |
return [] |
310 | 310 |
if not self.__cache: |
311 | 311 |
with self.engine.get_cursor() as cursor: |
312 |
sql = ('select distinct jsonb_object_keys(%s) as a from formdata order by a'
|
|
313 |
% self.engine_cube.json_field)
|
|
312 |
sql = ('select distinct jsonb_object_keys(%s) as a from %s order by a'
|
|
313 |
% (self.engine_cube.json_field, self.engine_cube.fact_table))
|
|
314 | 314 |
cursor.execute(sql) |
315 | 315 |
self.__cache = [row[0] for row in cursor.fetchall()] |
316 | 316 |
return self.__cache |
317 |
- |