diff options
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/README.md | 6 | ||||
| -rwxr-xr-x | backend/cgi-bin/data.py | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/backend/README.md b/backend/README.md index 3efa585..3a56f76 100644 --- a/backend/README.md +++ b/backend/README.md @@ -3,6 +3,6 @@ - data: Contains scripts for generating the tree-of-life database # During development -Having generated the database as data/data.db, and with this as the current -directory, running `python3 -m http.server --cgi 8000` allows the client to access -the CGI script, and hence the database, via `localhost:8000/cgi-bin/data.py`. +Having generated the database as data/data.db, running `python3 -m http.server --cgi 8000`, +in this directory, allows the client to access the CGI script, and hence the database, +via `localhost:8000/cgi-bin/data.py`. diff --git a/backend/cgi-bin/data.py b/backend/cgi-bin/data.py index 05ed81b..b152c14 100755 --- a/backend/cgi-bin/data.py +++ b/backend/cgi-bin/data.py @@ -6,7 +6,6 @@ import sqlite3 import gzip, jsonpickle dbFile = "data/data.db" -imgDir = "data/img/" DEFAULT_SUGG_LIM = 5 MAX_SUGG_LIM = 50 CORS_ANY_ORIGIN = True # Used during development to avoid Cross-Origin Resource Sharing restrictions |
