@app.template_filter('fees_by_currency')
def fees_by_currency(currency):
 fees = DataGetter.get_fee_settings_by_currency(currency)
 return fees

@ app . template_filter ( 'fees_by_currency' ) def fees_by_currency ( currency ) : fees = DataGetter . get_fee_settings_by_currency ( currency ) return fees
returns a fees object according to the currency input .