Refresh angepasst

This commit is contained in:
phil 2016-04-26 22:38:50 +00:00
parent ca02abf1d3
commit b4b1560dd2
2 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<link type="text/css" rel="stylesheet" media="all" href="bootstrap/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" media="all" href="bootstrap/css/bootstrap-theme.min.css" />
<link type="text/css" rel="stylesheet" media="all" href="style.css" />
<meta http-equiv="refresh" content="120" />
<meta http-equiv="refresh" content="60" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="text/javascript" src="clock.js"></script>
</head>

View File

@ -67,10 +67,9 @@ def get_link(index):
def update_static_html():
entries = list(Entry.select().orderBy("-timestamp"))
sidebar = Sidebar.select()[0]
try:
sidebar_text = Sidebar.select()[0].sidebar
except (AttriubuteError, IndexError) as exc:
except (AttributeError, IndexError) as exc:
sidebar_text = ""
file_index = 1
remaining_entries = entries