Refresh angepasst

master
phil 7 years ago
parent ca02abf1d3
commit b4b1560dd2
  1. 2
      templates/display.html
  2. 3
      tycker.py

@ -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>

@ -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

Loading…
Cancel
Save