Skip to content

Commit

Permalink
posting with certified
Browse files Browse the repository at this point in the history
  • Loading branch information
albertmena committed Jun 4, 2024
1 parent 32422e3 commit 31a885f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/API.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# Self imports
from typing import Optional, Tuple
from utils import runJob
from .utils import runJob

API_URL = 'xmipp.i2pc.es/api/attempts/'

Expand Down Expand Up @@ -124,7 +124,7 @@ def __getJSON(retCode: int = 0, xmippVersion: str = 'Unknow') -> Optional[str]:

# Obtaining variables

compileFile = '../compileLOG.txt'
compileFile = 'compileLOG.txt'
with open(compileFile, 'r') as file:
lines = file.readlines()
logTail = '\n'.join(lines[-100:])
Expand Down Expand Up @@ -260,7 +260,7 @@ def __getVersions():
GPPVersion = ''
pythonVersion = ''
MPIVersion = ''
configFile = '../xmipp.conf'
configFile = 'xmipp.conf'
with open(configFile, 'r') as file:
lines = file.readlines()
for l in lines:
Expand Down Expand Up @@ -415,6 +415,3 @@ def runInsistentJob(cmd: str, cwd: str = './', showOutput: bool = False,
# Returning output and return code
return retCode, output


if __name__ == '__main__':
sendApiPOST(retCode=0 )

0 comments on commit 31a885f

Please sign in to comment.