def rename_data(): databasefile = session.get('databasefile') imagesfolder = session.get('imagesfolder') filelist = [] statistics = None if databasefile is not None and imagesfolder is not None: mca = MCAImage(imagesfolder) filelist = mca.get_file_list(True) statistics = mca.stats() return render_template('rename_data.html', filelist=filelist, statistics=statistics)
def show_renames(): databasefile = session.get('databasefile') imagesfolder = session.get('imagesfolder') filelist = [] statistics = None if databasefile is not None and imagesfolder is not None: mca = MCAImage(imagesfolder) # filelist = mca.get_file_list(True) adict = mca.list_by_inspection() statistics = mca.sort_by_key(adict) return render_template('show_renames.html', statistics=statistics)
def stats(): imagesfolder = session.get('imagesfolder') filelist = None stats = None if imagesfolder is not None: mca = MCAImage(imagesfolder) if mca: filelist = mca.get_file_list() stats = mca.stats() return render_template('stats.html', filelist=filelist, stats=stats)