IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit 48d461c9 authored by Emi Simpson's avatar Emi Simpson
Browse files

Call the cleaner during conversion

parent 1e915a8a
Pipeline #331 failed with stage
in 28 seconds
......@@ -4,7 +4,9 @@ import uuid
import os
import io
app = Flask(__name__)
from cleaner import clean
app = Flask(__name__)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
#routes
......@@ -65,6 +67,7 @@ def extractAndConvert(extractpath):
file_in= open(output_file+'/index.html','r')
file_content = file_in.read()
file_content = clean(file_content)
split1,split2=file_content.split("</body>")
custom_script= '''
......
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