removed temporary files
This commit is contained in:
BIN
alembic/env.pyc
BIN
alembic/env.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,25 +0,0 @@
|
|||||||
"""create initial state
|
|
||||||
|
|
||||||
Revision ID: d1f648fcd62a
|
|
||||||
Revises:
|
|
||||||
Create Date: 2016-12-05 18:37:48.117437
|
|
||||||
|
|
||||||
"""
|
|
||||||
from alembic import op
|
|
||||||
import sqlalchemy as sa
|
|
||||||
|
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
|
||||||
revision = 'd1f648fcd62a'
|
|
||||||
down_revision = None
|
|
||||||
branch_labels = None
|
|
||||||
depends_on = None
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade():
|
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
|
||||||
op.drop_table('')
|
|
||||||
Binary file not shown.
@@ -1,57 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs-3.3.6/jq-2.2.3/dt-1.10.12/datatables.css"/>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="https://cdn.datatables.net/v/bs-3.3.6/jq-2.2.3/dt-1.10.12/datatables.js"></script>
|
|
||||||
<script>
|
|
||||||
$(document).ready(function()
|
|
||||||
{
|
|
||||||
$('#table').DataTable({
|
|
||||||
"order": [[{{sortby}}, 'desc']],
|
|
||||||
"paging": false
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<nav class="navbar navbar-default">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<a class="navbar-brand" href="#">HNLearn</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li><a href="/">Latest > 0</a></li>
|
|
||||||
<li><a href="/?all=true">Latest with < 0</a></li>
|
|
||||||
<li><a href="/?limit=day&all=true">Top for Past Day</a></li>
|
|
||||||
<li><a href="/?limit=week&all=true">Top for Past Week</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
<table id="table" class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Title</th>
|
|
||||||
<th>Date</th>
|
|
||||||
<th>Score</th>
|
|
||||||
<th>Up/Down</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
%for x in items:
|
|
||||||
<tr>
|
|
||||||
<td><a href="{{x.url}}">{{x.name}}</a></td>
|
|
||||||
<td>{{x.date.strftime("%Y-%m-%d %H:%M")}}</td>
|
|
||||||
<td>{{"{0:.4g}".format(x.rating)}}</td>
|
|
||||||
<td><a href="/rate/{{x.id}}?rating=good">Up</a> / <a href="/rate/{{x.id}}?rating=bad">Down</a></td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
%end
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user