Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pavel Kuzin
tower
Commits
c27467d0
Commit
c27467d0
authored
Jul 19, 2017
by
Aleksey Shirokih
Browse files
fix pep8
parent
bf1b2587
Changes
1
Hide whitespace changes
Inline
Side-by-side
tower/migrations/024_change_session_timeout.py
View file @
c27467d0
...
...
@@ -4,6 +4,7 @@ import yaml
# Tower modules
from
tower.models.environment
import
Environment
def
migrate
(
migrator
):
for
env
in
Environment
.
select
():
config
=
yaml
.
load
(
env
.
service_config
)
...
...
@@ -12,4 +13,3 @@ def migrate(migrator):
config
[
None
][
"login"
][
"session_ttl"
]
=
str
(
config
[
None
][
"login"
][
"session_ttl"
])
+
"d"
env
.
service_config
=
yaml
.
dump
(
config
)
env
.
save
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment