app.py
def correct():
    """When downloading citations failed, this allows the user to copy-and-paste them and continue"""
    input_text = request.form["correction_text"]
    
    filtered_name = session['filtered_name']
    data = session['data']
    settings = session['settings']
    language = settings['language']

    if len(input_text) > 10:
        data['reprocess?'] = True #Reprocess all data
        data = correction.add_input(input_text, data, settings)

    data = main.main(filtered_name, data, settings)

    URLs_failed = []
    for URL in data['processed_citations']:
        if URL and URL != '' and data['processed_citations'][URL]['text'] == '404':
            URLs_failed.append(URL)
    
    return render_template("article.html",
                            text=data['HTML_out'],
                            page=filtered_name,
                            language=language,
                            URLs_failed=URLs_failed,
                            URLs_failed_count=len(URLs_failed),
                            )
When downloading citations failed, this allows the user to copy-and-paste them and continue
When downloading citations failed, this allows the user to copy-and-paste them and continue
When downloading citations failed this allows the user to copy - and - paste them and continue
def correct():
    input_text = request.form["correction_text"]
    filtered_name = session['filtered_name']
    data = session['data']
    settings = session['settings']
    language = settings['language']
    if len(input_text) > 10:
        data['reprocess?'] = True 
        data = correction.add_input(input_text, data, settings)
    data = main.main(filtered_name, data, settings)
    URLs_failed = []
    for URL in data['processed_citations']:
        if URL and URL != '' and data['processed_citations'][URL]['text'] == '404':
            URLs_failed.append(URL)
    return render_template("article.html",
                            text=data['HTML_out'],
                            page=filtered_name,
                            language=language,
                            URLs_failed=URLs_failed,
                            URLs_failed_count=len(URLs_failed),
                            )
def correct ( ) : input_text = request . form [ "correction_text" ] filtered_name = session [ 'filtered_name' ] data = session [ 'data' ] settings = session [ 'settings' ] language = settings [ 'language' ] if len ( input_text ) > 10 : data [ 'reprocess?' ] = True data = correction . add_input ( input_text , data , settings ) data = main . main ( filtered_name , data , settings ) URLs_failed = [ ] for URL in data [ 'processed_citations' ] : if URL and URL != '' and data [ 'processed_citations' ] [ URL ] [ 'text' ] == '404' : URLs_failed . append ( URL ) return render_template ( "article.html" , text = data [ 'HTML_out' ] , page = filtered_name , language = language , URLs_failed = URLs_failed , URLs_failed_count = len ( URLs_failed ) , )
When downloading citations failed, this allows the user to copy-and-paste them and continue
When downloading citations failed this allows the user to copy - and - paste them and continue
"""When downloading citations failed, this allows the user to copy-and-paste them and continue""" #Reprocess all data