diff --git a/webnotes/app.py b/webnotes/app.py index 2299e90189..d2366c9922 100644 --- a/webnotes/app.py +++ b/webnotes/app.py @@ -21,7 +21,7 @@ def application(request): content = static.read() response = Response() - response.response = content + response.data = content response.headers["Content-type"] = mimetypes.guess_type(path)[0] return response diff --git a/webnotes/sessions.py b/webnotes/sessions.py index ebc1fa3b1f..43ea057c65 100644 --- a/webnotes/sessions.py +++ b/webnotes/sessions.py @@ -221,7 +221,7 @@ class Session: lastupdate=NOW() where sid=%s""" , (str(self.data['data']), self.data['sid'])) - if webnotes.request.cmd not in ("webnotes.sessions.clear", "logout"): + if webnotes.form_dict.cmd not in ("webnotes.sessions.clear", "logout"): webnotes.cache().set_value("last_db_session_update:" + self.sid, webnotes.utils.now()) webnotes.cache().set_value("session:" + self.sid, self.data)