def get_tag_info(): global tag_info_file try: exit_code = update_tags_info(logger) tag_info_file = load_json_file(Params.TAG_INFO_FILE, logger) return str(exit_code) except Exception as e: error_notifier(type(e).__name__, traceback.format_exc(), mail, logger) return traceback.format_exc()
get_coin_by_urlname) from crypto_exchange_path.models import Feedback from crypto_exchange_path.info_fetcher import (update_prices, import_exchanges, import_fees, import_coins, import_pairs, update_coins_info, update_people_info, update_tags_info) # Start logging logger = set_logger('Main', Params.LOGGER_DETAIL) # Load information files coin_info_file = load_json_file(Params.COIN_INFO_FILE, logger) people_info_file = load_json_file(Params.PEOPLE_INFO_FILE, logger) tag_info_file = load_json_file(Params.TAG_INFO_FILE, logger) @app.errorhandler(404) def page_not_found(e): return render_template('404.html'), 404 def manage_feedback_form(feedback_form): date = datetime.datetime.now() topic = feedback_form.topic.data subject = feedback_form.subject.data detail = feedback_form.detail.data feedback = Feedback(datetime=date,