From 26657274cbcef149f9a3864281cb5d152f7bbaa7 Mon Sep 17 00:00:00 2001 From: Russ Handorf Date: Mon, 19 Dec 2022 20:16:09 -0500 Subject: [PATCH] just copy a log file into 'logs' --- .../dbview/__pycache__/views.cpython-38.pyc | Bin 3486 -> 3502 bytes logviewer/dbview/views.py | 3 ++- .../devices/__pycache__/views.cpython-38.pyc | Bin 946 -> 962 bytes logviewer/devices/views.py | 3 ++- .../__pycache__/settings.cpython-38.pyc | Bin 2543 -> 2543 bytes .../logviewer/__pycache__/urls.cpython-38.pyc | Bin 1953 -> 1953 bytes 6 files changed, 4 insertions(+), 2 deletions(-) diff --git a/logviewer/dbview/__pycache__/views.cpython-38.pyc b/logviewer/dbview/__pycache__/views.cpython-38.pyc index b7b97946592a90b5cda3938a61311495c04cc34a..9842ad117932a74267d0c8758992801ddb60383b 100644 GIT binary patch delta 316 zcmYjMJxjzu5Z&2iFEM5%Mp3-0MS_UM;r#(yu@M_VERrCBnB`{o@Pi!w23c!KN*fz% z|Ap250Xwm^bN94x;5}xB_Z~A(qn8msbc<{fyP+-Z{GQCc*6UbnH{HNae(Rr*%sakgwYZe~2sR`O3>DG@btP3%p$X)) zu2eZTK`xr6%#|7BGn4}LIjrw7!=|$mZ_h%jy>K2A{pl*vpgY+3D6Zu*!9+j8QL^{} zB1mZnD}d?iC+sdks)x(p8;Oxc8RZUUetm!O%gNgo#$1x6^B6O7LZGJFJUF&}T Nwfzgwitl(Kg&%W|PK5vf delta 274 zcmZ1{Jx`i9l$V!_0SM~;FGzkgk@rdx3y{MM#LhrmtO6uT7#1+5FfL@QWvpRbz_gH| zmZ^qm0doz*LdFFwKpt}qb1;J@lV6ouPJVi^zISGEZfc3Hk%5tsp^<@wu917XD_442YX5}2m9wYdz&vIi?>%PT)Q5`BqbOul4_jlNK1HARk`~t|)cS~^V*?a0!Wue0 zhyr>jc*1rWF}&x4H?pJL|wrR?|vwprp-J-dG*`c&@xhnD22Bf`o9vlAYsD8(FD11?2*@mE0}>2OB8*%d qMPidVnT^?QG36H*u}yYnww4kAN)?HL2!wu!A(Lk?t247RF#-T1O+L*4 diff --git a/logviewer/devices/views.py b/logviewer/devices/views.py index 5451dc8..b65035b 100644 --- a/logviewer/devices/views.py +++ b/logviewer/devices/views.py @@ -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() diff --git a/logviewer/logviewer/__pycache__/settings.cpython-38.pyc b/logviewer/logviewer/__pycache__/settings.cpython-38.pyc index 5031e5ad70af1f9b044e1d21e8734930614cfe42..33105ddf3357aa2903e0084084d0f03eed62a3f7 100644 GIT binary patch delta 20 acmaDa{9c$ll$V!_0SK757jEQ!!U+I1=LFyY delta 20 acmaDa{9c$ll$V!_0SHnv=5OSF!U+I6zy+QF diff --git a/logviewer/logviewer/__pycache__/urls.cpython-38.pyc b/logviewer/logviewer/__pycache__/urls.cpython-38.pyc index 5fc6884fc2ebe80f4e6f08013dc3008be61f506d..63157c63e7a7cfb8aad64f2e1c13811f4aae937a 100644 GIT binary patch delta 20 acmZ3;zmT6hl$V!_0SLM|7jER9#tr~1*aUL` delta 20 acmZ3;zmT6hl$V!_0SG+*EZE3BjU50mw*?~r -- 2.34.1