Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
5eb53579
Commit
5eb53579
authored
Apr 15, 2020
by
Vladislav Rykov
Browse files
device last messages to 10
parent
ff1eb0bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
5eb53579
...
...
@@ -222,7 +222,7 @@ def delete_dev():
@
server
.
route
(
'/dev-data'
)
def
dev_data
():
last
=
data
.
get_last_n
(
session
[
'appkey'
],
session
[
'devid'
],
5
)
last
=
data
.
get_last_n
(
session
[
'appkey'
],
session
[
'devid'
],
10
)
count
=
data
.
get_count
(
session
[
'appkey'
],
session
[
'devid'
])
#print(last)
...
...
templates/dev-data.html
View file @
5eb53579
...
...
@@ -7,7 +7,7 @@
<div
class=
"row"
>
<div
class=
"col-md-6 col-md-offset-3"
>
{% if data %}
<p>
Last
5
messages:
</p>
<p>
Last messages:
</p>
<table
class=
"table"
>
<thead>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment