just copy a log file into 'logs'
authorRuss Handorf <rhandorf@handorf.org>
Tue, 20 Dec 2022 01:16:09 +0000 (20:16 -0500)
committerRuss Handorf <rhandorf@handorf.org>
Tue, 20 Dec 2022 01:16:09 +0000 (20:16 -0500)
logviewer/dbview/__pycache__/views.cpython-38.pyc
logviewer/dbview/views.py
logviewer/devices/__pycache__/views.cpython-38.pyc
logviewer/devices/views.py
logviewer/logviewer/__pycache__/settings.cpython-38.pyc
logviewer/logviewer/__pycache__/urls.cpython-38.pyc

index b7b97946592a90b5cda3938a61311495c04cc34a..9842ad117932a74267d0c8758992801ddb60383b 100644 (file)
Binary files a/logviewer/dbview/__pycache__/views.cpython-38.pyc and b/logviewer/dbview/__pycache__/views.cpython-38.pyc differ
index c84f38b8d10769bec4ee063988cbb2216955714d..1344acbaaf0311e2b06b96633ddfbdfede8237f0 100644 (file)
@@ -9,7 +9,8 @@ import pprint
 from django.views.decorators.csrf import csrf_exempt
 
 def load_db(query):
-    connection = sqlite3.connect("logs/Kismet-20221208-22-56-36-1.kismet")
+    dir_list = os.listdir("logs/")
+    connection = sqlite3.connect("logs/"+dir_list[0])
     #connection.row_factory = lambda cursor, row: row[0]
     cursor = connection.cursor()
     rows = cursor.execute(query).fetchall()
index 6b59af7dee532b9e8c36a9e7883637f322ec4e9d..bbd0b8cfa02983193374dec97d54ec30abe15a70 100644 (file)
Binary files a/logviewer/devices/__pycache__/views.cpython-38.pyc and b/logviewer/devices/__pycache__/views.cpython-38.pyc differ
index 5451dc8cfc1ae3a24de969d47cda51de03d94386..b65035bf3ce7e7988763ad24b2e0c94bb6b1d840 100644 (file)
@@ -9,7 +9,8 @@ import pprint
 from django.views.decorators.csrf import csrf_exempt
 
 def load_db(query):
-    connection = sqlite3.connect("logs/Kismet-20221208-22-56-36-1.kismet")
+    dir_list = os.listdir("logs/")
+    connection = sqlite3.connect("logs/"+dir_list[0])
     #connection.row_factory = lambda cursor, row: row[0]
     cursor = connection.cursor()
     rows = cursor.execute(query).fetchall()
index 5031e5ad70af1f9b044e1d21e8734930614cfe42..33105ddf3357aa2903e0084084d0f03eed62a3f7 100644 (file)
Binary files a/logviewer/logviewer/__pycache__/settings.cpython-38.pyc and b/logviewer/logviewer/__pycache__/settings.cpython-38.pyc differ
index 5fc6884fc2ebe80f4e6f08013dc3008be61f506d..63157c63e7a7cfb8aad64f2e1c13811f4aae937a 100644 (file)
Binary files a/logviewer/logviewer/__pycache__/urls.cpython-38.pyc and b/logviewer/logviewer/__pycache__/urls.cpython-38.pyc differ