def make_cards(sources=[dict(file='jammers.csv')], fieldnames=None, extra=False):
	""" Main function. It will import jammers from jammers.csv, then from google forms and build a card for each jammer. 

		Output - jammers.html 
	"""
	jamsite = import_all_jammers(sources)
	htmlfile = write_jammer_cards(jamsite.jammers.values(), extra=extra)
	return htmlfile
def import_jammers():
	try:
		jamsite = import_all_jammers(load_sources())
		jamsite.save()
		flash("Done with the import! ")
		return redirect(url_for('index'))
	except IOError:
		flash(errormsg['missing_jammers_file'])
		return redirect(url_for('index'))
	except:
		import traceback
		return "<h1>not worky\n\r</h1><p>"+traceback.format_exc()+"</p>"\