We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3629738 commit ccfa7a9Copy full SHA for ccfa7a9
server/workers/api/src/apis/base.py
@@ -72,6 +72,9 @@ def post(self):
72
del params["optradio"]
73
errors = search_param_schema.validate(params, partial=True)
74
if "repo" in params:
75
+ global contentprovider_lookup
76
+ if not contentprovider_lookup:
77
+ contentprovider_lookup = get_or_create_contentprovider_lookup()
78
repo_name = contentprovider_lookup.get(params["repo"])
79
params["repo_name"] = repo_name
80
params["limit"] = 120
@@ -120,6 +123,7 @@ def post(self):
120
123
"""
121
124
params = request.get_json()
122
125
base_ns.logger.debug(params)
126
127
if not contentprovider_lookup:
128
contentprovider_lookup = get_or_create_contentprovider_lookup()
129
if not params:
0 commit comments