Beispiel #1
0
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)
Beispiel #2
0
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)