Skip to content

Commit df675e4

Browse files
committed
make rltbl_root parametric
1 parent 2468cf9 commit df675e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/tdt_api/endpoints/taxonomy_service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ def rltbl(api_request, method, taxonomy, path, username, readonly="TRUE"):
131131
'CONTENT_TYPE': api_request.headers.get('content-type') or "text/html",
132132
'RLTBL_READONLY': readonly,
133133
'RLTBL_USER': username,
134-
'RLTBL_ROOT': "/api/browser/" + taxonomy,
134+
'RLTBL_ROOT': os.getenv("RLTBL_ROOT") + taxonomy,
135+
# 'RLTBL_ROOT': "/api/browser/" + taxonomy,
136+
# 'RLTBL_ROOT': "/tdt_api/browser/" + taxonomy, # for PROD
135137
'RLTBL_GIT_AUTHOR': username,
136-
# 'RLTBL_ROOT': "/tdt_api/browser/" + taxonomy, # for server deployment
137138
}
138139
print("USER is: " + username)
139140
# print("RLTBL", env, data, type(data))

0 commit comments

Comments
 (0)