Commit a8aa1b4c authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files
parent fad4dc38
Pipeline #74410 passed with stage
in 2 minutes and 25 seconds
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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment