summaryrefslogtreecommitdiff
path: root/bin/lookup-server
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lookup-server')
-rwxr-xr-xbin/lookup-server3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/lookup-server b/bin/lookup-server
index 13bff59..615f363 100755
--- a/bin/lookup-server
+++ b/bin/lookup-server
@@ -24,6 +24,9 @@ conn = psycopg2.connect(
host=os.getenv("GEOLOOKUP_DBHOST", "localhost"),
)
+conn.autocommit = True
+conn.set_session(readonly=True)
+
def set_coarse_location(train):
now = datetime.now(pytz.utc)