aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-07 12:37:04 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-07 12:37:04 +0200
commita072f5d48406d7e4fe69c5d9d02d64384d42660d (patch)
treee0126fff4e77c9350d6b2cb3ff43850c28780ad2
parentc5073d9e7d68449bb9aba2791b8a9b3f4d707362 (diff)
downloadhaketilo-hydrilla-a072f5d48406d7e4fe69c5d9d02d64384d42660d.tar.gz
haketilo-hydrilla-a072f5d48406d7e4fe69c5d9d02d64384d42660d.zip
[proxy] move tables.sql to insite state implementation directory
-rw-r--r--src/hydrilla/proxy/state_impl/concrete_state.py2
-rw-r--r--src/hydrilla/proxy/state_impl/tables.sql (renamed from src/hydrilla/proxy/tables.sql)0
2 files changed, 1 insertions, 1 deletions
diff --git a/src/hydrilla/proxy/state_impl/concrete_state.py b/src/hydrilla/proxy/state_impl/concrete_state.py
index d8706e8..f189aa2 100644
--- a/src/hydrilla/proxy/state_impl/concrete_state.py
+++ b/src/hydrilla/proxy/state_impl/concrete_state.py
@@ -76,7 +76,7 @@ def _prepare_database(connection: sqlite3.Connection) -> None:
(db_initialized,), = cursor.fetchall()
if not db_initialized:
- cursor.executescript((here.parent / 'tables.sql').read_text())
+ cursor.executescript((here / 'tables.sql').read_text())
else:
cursor.execute(
'''
diff --git a/src/hydrilla/proxy/tables.sql b/src/hydrilla/proxy/state_impl/tables.sql
index 6ceea25..6ceea25 100644
--- a/src/hydrilla/proxy/tables.sql
+++ b/src/hydrilla/proxy/state_impl/tables.sql