You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
330 B
Python

3 years ago
from datetime import datetime
from quart import Blueprint, current_app
bp = Blueprint('filters', 'filters')
@bp.app_template_filter('ts')
def from_ts(v):
return datetime.fromtimestamp(v)
@bp.app_template_filter('xmr_block_explorer')
def xmr_block_explorer(v):
return f'https://www.exploremonero.com/transaction/{v}'