Fix db location
This commit is contained in:
parent
171358bc8d
commit
02146d6ab5
@ -6,5 +6,3 @@ COPY requirements.txt ./
|
|||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY app/ ./
|
COPY app/ ./
|
||||||
|
|
||||||
CMD "python3 /usr/src/app/monitor-planning.py"
|
|
||||||
@ -66,13 +66,13 @@ def update_other_applications():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
with sqlite3.connect("../database.db") as connection:
|
with sqlite3.connect("./database.db") as connection:
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
Application.CreateTableIfNotExists(cursor, reset_table)
|
Application.CreateTableIfNotExists(cursor, reset_table)
|
||||||
|
|
||||||
midday_checked = False
|
midday_checked = False
|
||||||
while True:
|
while True:
|
||||||
with sqlite3.connect("../database.db") as connection:
|
with sqlite3.connect("./database.db") as connection:
|
||||||
application = Application(connection.cursor(), "25/00605/FUL")
|
application = Application(connection.cursor(), "25/00605/FUL")
|
||||||
|
|
||||||
with webdriver.Chrome(options=web_opts) as browser:
|
with webdriver.Chrome(options=web_opts) as browser:
|
||||||
|
|||||||
@ -17,7 +17,7 @@ api_url = 'https://hass.jennett-wheeler.co.uk/api/webhook/-Qx6jHsGLHwbBlJpLek5Nj
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
with sqlite3.connect("../database.db") as connection:
|
with sqlite3.connect("./database.db") as connection:
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
options = webdriver.ChromeOptions()
|
options = webdriver.ChromeOptions()
|
||||||
|
|||||||
@ -16,7 +16,7 @@ TAG_RE = re.compile(r'<[^>]+>')
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
with sqlite3.connect("../database.db") as connection:
|
with sqlite3.connect("./database.db") as connection:
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
Application.CreateTableIfNotExists(cursor, reset_table)
|
Application.CreateTableIfNotExists(cursor, reset_table)
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ from application import Application
|
|||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
with sqlite3.connect("../database.db") as connection:
|
with sqlite3.connect("./database.db") as connection:
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
applications = []
|
applications = []
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user