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
naiades
naiades-platform-poc
Commits
84c6dfb8
Commit
84c6dfb8
authored
Jun 21, 2021
by
Cédric Crettaz
🖥
Browse files
Correction of a bug in the DCA Carouge fountain.
parent
99b43907
Changes
1
Hide whitespace changes
Inline
Side-by-side
dca-carouge-fountain/app.py
View file @
84c6dfb8
...
...
@@ -98,7 +98,11 @@ def get_ngsiv2_typed_description(val, force_date_modified=None):
new_val
=
re
.
sub
(
pat
,
''
,
val
)
app
.
logger
.
warning
(
"Special char(s) deleted. This <{}> turned into this <{}>"
.
format
(
val
,
new_val
))
ret
.
update
({
'type'
:
'Text'
,
'value'
:
new_val
})
# Avoid the date and time as text
if
val
.
endswith
(
'Z'
):
ret
.
update
({
'type'
:
'DateTime'
,
'value'
:
new_val
})
else
:
ret
.
update
({
'type'
:
'Text'
,
'value'
:
new_val
})
elif
isinstance
(
val
,
datetime
.
datetime
):
# replace +00:00 is the same as Z but Orion doesnt like it :/
...
...
Write
Preview
Markdown
is supported
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