From d8df097e83ac3f419622ea6633da4df45895e0e3 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sat, 10 Jun 2023 11:11:40 +1000 Subject: [PATCH] Fixes --- docker-compose.yml | 6 ++++-- pialert/database.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 782409d7..b363fe78 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,9 +7,11 @@ services: network_mode: "host" restart: unless-stopped volumes: - - ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config + # - ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config + - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config # - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db - - ${APP_DATA_LOCATION}/pialert_dev/db:/home/pi/pialert/db + # - ${APP_DATA_LOCATION}/pialert_dev/db:/home/pi/pialert/db + - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db # (optional) useful for debugging if you have issues setting up the container - ${LOGS_LOCATION}:/home/pi/pialert/front/log # DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes diff --git a/pialert/database.py b/pialert/database.py index d39c7054..b3812cae 100755 --- a/pialert/database.py +++ b/pialert/database.py @@ -278,7 +278,7 @@ class DB(): # if nmapScanMissing == False: # # Re-creating Nmap_Scan table - # sql.execute("DROP TABLE Nmap_Scan;") + # self.sql.execute("DROP TABLE Nmap_Scan;") # nmapScanMissing = True if nmapScanMissing: