aboutsummaryrefslogtreecommitdiff
path: root/backend/tilo.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-07-11 13:19:18 +1000
committerTerry Truong <terry06890@gmail.com>2022-07-11 13:19:18 +1000
commit7a28e15874796b3becf97c0193575d906d0cfd01 (patch)
tree20c679fb7167c18009a697f0d3db7bed1d1b409c /backend/tilo.py
parent5fe71ea7b9d9a5d2dc6e8e5ce5b9193629eed74d (diff)
Update backend documentation
Diffstat (limited to 'backend/tilo.py')
-rwxr-xr-xbackend/tilo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/tilo.py b/backend/tilo.py
index 7b0f8aa..89cc867 100755
--- a/backend/tilo.py
+++ b/backend/tilo.py
@@ -223,6 +223,7 @@ def lookupInfo(name, tree, dbCur):
def getTableSuffix(tree):
return "t" if tree == "trimmed" else "i" if tree == "images" else "p"
+# Queries the database, and constructs a response object
def handleReq(dbCur, environ):
# Get query params
queryStr = environ["QUERY_STRING"] if "QUERY_STRING" in environ else ""
@@ -309,6 +310,7 @@ def handleReq(dbCur, environ):
return infoResponse
# On failure, provide empty response
return None
+# Entry point for the WSGI script
def application(environ, start_response):
global dbFile
# Open db