aboutsummaryrefslogtreecommitdiff
path: root/www/html/affiche-tab.py
diff options
context:
space:
mode:
Diffstat (limited to 'www/html/affiche-tab.py')
-rw-r--r--www/html/affiche-tab.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/html/affiche-tab.py b/www/html/affiche-tab.py
index 5481d84..83512dc 100644
--- a/www/html/affiche-tab.py
+++ b/www/html/affiche-tab.py
@@ -12,7 +12,7 @@ def index(req):
conn=connexionBD()
cur=conn.cursor()
- sql="select * from paquet where {}".format(condition)
+ sql="select * from paquet where {} ORDER BY heure DESC;".format(condition)
cur.execute(sql)
conn.commit()
data=cur.fetchall()
@@ -29,9 +29,9 @@ def index(req):
"""</tr>""")
req.write("""
-<center><table>
+<table class="data_tab">
<tr><th>Heure</th><th>Protocole</th><th>IP Source</th><th>IP Destination</th><th>Port Source</th><th>Port Destination</th></tr>
"""
+ content +
"""
-</table></center>""")
+</table>""")