Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
36c82549
Commit
36c82549
authored
Oct 09, 2020
by
flothoni
Browse files
migrator.py; add a minor modification to allow to use a more explicit config json file
parent
de12acb3
Pipeline
#176164
passed with stages
in 13 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/scripts/migrator.py
View file @
36c82549
...
...
@@ -102,7 +102,9 @@ class ConfigMapper(IdMapper):
with
open
(
cfile
,
'r'
)
as
cfg
:
config_map
=
json
.
load
(
cfg
,
encoding
=
'utf-8'
)
for
key
in
config_map
:
self
.
mapping
[
long
(
key
)]
=
config_map
[
key
]
if
config_map
[
key
][
"link_local"
]:
self
.
mapping
[
long
(
key
)]
=
config_map
[
key
][
"link_local"
]
self
.
log
.
info
(
"mapping loaded"
)
self
.
log
.
debug
(
"mapping: "
+
str
(
self
.
mapping
.
keys
()))
...
...
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