made to suck less, including:
All checks were successful
continuous-integration/drone/push Build is passing

* `make` works again, exporting correct database file path for local dev
* better formatting of durations
* refactored duration math to misc functions
* now tracks and displays score
* displays short-lifetime fp wipeouts in red
This commit is contained in:
2020-03-25 07:50:10 -07:00
parent fe1c4df4f1
commit 0d9ed8874f
9 changed files with 84 additions and 29 deletions

View File

@@ -11,7 +11,8 @@
<th scope="col">Hang Time</th>
<th scope="col">Title</th>
<th scope="col">Highest Rank</th>
<th scope="col">Time Since Wipeout</th>
<th scope="col">Time Since <a
href="https://www.youtube.com/watch?v=p13yZAjhU0M">Wipeout</a></th>
</tr>
</thead>
<tbody>
@@ -21,8 +22,13 @@
-->
<tr>
<td scope="row">{{exit.Duration}}</th>
<td><a href="{{exit.URL}}">{{exit.Title}}</a> <small>(<a
{% if exit.DurationSecs < 1800 %}
<td scope="row" class="text-danger">{{exit.Duration}}</th>
{% else %}
<td scope="row">{{exit.Duration}}</th>
{% endif %}
<td><a href="{{exit.URL}}">{{exit.Title}}</a> <small>({{exit.Score}}
points, <a
href="https://news.ycombinator.com/item?id={{exit.HNID}}">comments</a>)</small></td>
<td>{{exit.HighestRank}}</td>
<td>{{exit.TimeGone}}</td>
@@ -47,7 +53,7 @@
<tr>
<td scope="row">{{i.Duration}}</th>
<td><a href="{{i.URL}}">{{i.Title}}</a> <small>(<a
<td><a href="{{i.URL}}">{{i.Title}}</a> <small>({{i.Score}} points, <a
href="https://news.ycombinator.com/item?id={{i.HNID}}">comments</a>)</small></td>
<td>{{i.HighestRank}}</td>
</tr>