mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-17 17:04:54 +00:00
Yeet expo page
Fix score uploading
This commit is contained in:
parent
85a329ad6d
commit
a93a8cf04d
40 changed files with 109 additions and 1247 deletions
13
TFR/server/filters.py
Normal file
13
TFR/server/filters.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
import datetime
|
||||
from flask import Blueprint
|
||||
|
||||
|
||||
blueprint = Blueprint('filters', __name__, template_folder='templates')
|
||||
|
||||
|
||||
@blueprint.app_template_filter()
|
||||
def format_result(dttm):
|
||||
dttm = str(dttm).split('.')
|
||||
time = datetime.timedelta(seconds=int(dttm[0]))
|
||||
microtime = dttm[1][:3]
|
||||
return f'{time}:{microtime}'
|
Loading…
Add table
Add a link
Reference in a new issue