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.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="bootstrap/css/bootstrap-theme.min.css" />
<link type="text/css" rel="stylesheet" media="all" href="style.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" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="text/javascript" src="clock.js"></script> <script type="text/javascript" src="clock.js"></script>
</head> </head>

View file

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