Commit bf76056d authored by Patrick Dohmen's avatar Patrick Dohmen

Fix issue #295

Move files in the "data" folder into "incomplete" folder only with not
existing observations. Response in this case is "404: Not Found".
parent 2d0230f7
Pipeline #20968780 passed with stage
in 1 minute and 55 seconds
......@@ -130,10 +130,12 @@ def post_data():
os.path.join(settings.SATNOGS_COMPLETE_OUTPUT_PATH, fil))
else:
os.remove(os.path.join(settings.SATNOGS_OUTPUT_PATH, fil))
else:
elif response.status_code == 404:
LOGGER.error('Bad status code: %s', response.status_code)
os.rename(os.path.join(settings.SATNOGS_OUTPUT_PATH, fil),
os.path.join(settings.SATNOGS_INCOMPLETE_OUTPUT_PATH, fil))
else:
LOGGER.error('Bad status code: %s', response.status_code)
def get_jobs():
......
Markdown is supported
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