From 7a28e15874796b3becf97c0193575d906d0cfd01 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 11 Jul 2022 13:19:18 +1000 Subject: Update backend documentation --- backend/tilo.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/tilo.py') 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 -- cgit v1.2.3