Skip to content

Commit 3782cba

Browse files
committed
Export to use session
1 parent 89c7297 commit 3782cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def __init__(self, sql):
1313

1414
self.__gridName = request.args['gn'] if 'gn' in request.args.keys() else sys.exit('PYTHONGRID_ERROR: ULR parameter "gn" is not defined.')
1515
self.__export_type = request.args['export_type'] if 'export_type' in request.args.keys() else None
16-
self.__grid_sql = sql
16+
self.__grid_sql = session[app.config["GRID_SESSION_KEY"] + "_" + self.__gridName + "_sql"]
17+
self.__sql_key = json.loads(session[app.config["GRID_SESSION_KEY"] + "_" + self.__gridName + "_sql_key"])
1718
self.__sql_filter = '' #TODO set_query_filter()
18-
self.__sql_fkey = '' #TODO session->get(SESSION_KEY.'_'.gridName.'_sql_fkey');
1919

2020
self.__rs = None # grid header
2121
self.__result = None # grid body

0 commit comments

Comments
 (0)