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
317 B
Python
16 lines
317 B
Python
from datetime import datetime
|
|
|
|
from quart import Blueprint
|
|
|
|
|
|
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}'
|