Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
indexers
metadata-and-data
Commits
ed91e793
Commit
ed91e793
authored
Jan 14, 2022
by
Damien DESPRES
Browse files
fix #12829
parent
0c1c2a49
Pipeline
#19998
failed with stage
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/fix_links.py
View file @
ed91e793
...
@@ -151,7 +151,7 @@ def fix_links( links, credentials=None ):
...
@@ -151,7 +151,7 @@ def fix_links( links, credentials=None ):
the_fixed_ws_url
=
None
the_fixed_ws_url
=
None
for
k
,
link
in
enumerate
(
fixed_links
):
for
k
,
link
in
enumerate
(
fixed_links
):
if
link
[
'protocol'
]
==
'JSON'
and
'download.data.grandlyon.com/ws'
in
link
[
'url'
]:
if
link
[
'protocol'
]
==
'JSON'
and
(
'download.data.grandlyon.com/ws'
in
link
[
'url'
]
or
'download.recette.data.grandlyon.com/ws'
in
link
[
'url'
])
:
fixed_links
[
k
][
'protocol'
]
=
'WS'
fixed_links
[
k
][
'protocol'
]
=
'WS'
tmp
=
links
[
k
][
'url'
]
tmp
=
links
[
k
][
'url'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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