You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/05 17:04:50 UTC

[GitHub] [airflow] ozw1z5rd commented on issue #10053: Error "Name 'flask' is not defined" when changing the force_log_out_after

ozw1z5rd commented on issue #10053:
URL: https://github.com/apache/airflow/issues/10053#issuecomment-669314159


   There is at least another problem in the same block of code : 
   `app.permanent_session_lifetime = datetime.timedelta(minutes=_force_log_out_after)`
   but there is not import for `datetime` in  `airflow/www_rbac/app.py`, it imports `timedelta` so the correct code should be:
   `app.permanent_session_lifetime = timedelta(minutes=_force_log_out_after)` 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org