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
OSUG
RESIF
ws-sacpz-resp
Commits
a8aa1b4c
Commit
a8aa1b4c
authored
Sep 09, 2021
by
Jonathan Schaeffer
Browse files
Fix pour le bug start Date
https://help.univ-grenoble-alpes.fr/front/ticket.form.php?id=310297
parent
fad4dc38
Pipeline
#74410
passed with stage
in 2 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/output.py
View file @
a8aa1b4c
import
glob
import
logging
import
time
import
re
from
io
import
StringIO
from
subprocess
import
Popen
from
tempfile
import
TemporaryDirectory
...
...
@@ -108,7 +109,10 @@ def get_resp(params):
data
=
StringIO
()
for
filename
in
glob
.
glob
(
f
"
{
tmp
}
/RESP.*"
):
with
open
(
filename
)
as
myfile
:
data
.
write
(
myfile
.
read
())
for
line
in
myfile
.
readlines
():
# Si la date n'a pas d'information de temps, alors on doit ajouter des 0
newline
=
re
.
sub
(
r
"( date: +[0-9]{4}.[012][0-9]{2})\n"
,
r
"\1,10:00:00.0000\n"
,
line
)
data
.
write
(
newline
)
data
=
data
.
getvalue
()
if
not
data
:
...
...
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