Skip to content

Commit ccfa7a9

Browse files
committed
bugfix
1 parent 3629738 commit ccfa7a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/workers/api/src/apis/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ def post(self):
7272
del params["optradio"]
7373
errors = search_param_schema.validate(params, partial=True)
7474
if "repo" in params:
75+
global contentprovider_lookup
76+
if not contentprovider_lookup:
77+
contentprovider_lookup = get_or_create_contentprovider_lookup()
7578
repo_name = contentprovider_lookup.get(params["repo"])
7679
params["repo_name"] = repo_name
7780
params["limit"] = 120
@@ -120,6 +123,7 @@ def post(self):
120123
"""
121124
params = request.get_json()
122125
base_ns.logger.debug(params)
126+
global contentprovider_lookup
123127
if not contentprovider_lookup:
124128
contentprovider_lookup = get_or_create_contentprovider_lookup()
125129
if not params:

0 commit comments

Comments
 (0)