Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/brightics/studio
Browse files Browse the repository at this point in the history
  • Loading branch information
krazyeom committed Jun 27, 2019
2 parents cce299b + dc94745 commit b65d006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions function/python/brightics/brightics_python_runner.py
Expand Up @@ -25,6 +25,8 @@
import ast
from contextlib import contextmanager
import json
import matplotlib
matplotlib.use("agg")

try:
from StringIO import StringIO
Expand Down
2 changes: 2 additions & 0 deletions function/python/brightics/common/datasource.py
Expand Up @@ -14,6 +14,7 @@
limitations under the License.
"""

import os
import sqlalchemy
from sqlalchemy.pool import NullPool

Expand All @@ -28,6 +29,7 @@ class DbEngine:
required_keys = {'dbType', 'username', 'password', 'ip', 'port', 'dbName'}

def __init__(self, **kwargs):
os.environ['NLS_LANG'] = '.UTF8'
diff = self.required_keys - kwargs.keys()
if diff:
raise Exception(diff.pop() + ' is required parameter')
Expand Down

0 comments on commit b65d006

Please sign in to comment.