Skip to content

Commit

Permalink
fix protocol schema for fetched images
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew committed Nov 28, 2023
1 parent 9485c44 commit 86c7e95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/aap_mm/aap_mm_datalayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def find(self, resource, req, lookup):
raise SuperdeskApiError.internalError("Unable to log into the image archive")

url = self._app.config['AAP_MM_SEARCH_URL'] + '/Assets/search'
query_keywords = '*:*'
query_keywords = '*'
if 'query' in req['query']['filtered']:
query_keywords = req['query']['filtered']['query']['query_string']['query']
query_keywords = query_keywords.replace('slugline:', 'objectname:')
Expand Down Expand Up @@ -391,7 +391,7 @@ def find_one_raw(self, resource, _id):

def url_for_media(self, media_id, mimetype=None):
return url_for('upload_raw.get_upload_as_data_uri', media_id=media_id,
_external=True, _schema=self._app.config['URL_PROTOCOL'])
_external=True, _scheme=self._app.config['URL_PROTOCOL'])

def find_list_of_ids(self, resource, ids, client_projection=None):
raise NotImplementedError()
Expand Down

0 comments on commit 86c7e95

Please sign in to comment.