Actually delete the work dir

This commit is contained in:
Alex Wright 2018-11-05 21:56:13 +01:00
parent 536ec3871c
commit 273312b890
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import os
from celery import Celery from celery import Celery
from datetime import datetime, timedelta from datetime import datetime, timedelta
from flask import Flask, abort, request, Response, send_file from flask import Flask, abort, request, Response, send_file
from shutil import rmtree
import pypandoc import pypandoc
app = Flask(__name__) app = Flask(__name__)
@ -61,4 +62,4 @@ def convert():
@celery.task() @celery.task()
def clean_up(path): def clean_up(path):
app.logger.info('Deleting work dir %s', path) app.logger.info('Deleting work dir %s', path)
pass rmtree(path)