Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #28 from dataware-tools/fix/uploading
Browse files Browse the repository at this point in the history
Fix bug on uploading
  • Loading branch information
yusukefs authored Sep 3, 2021
2 parents e5b94f3 + 504750b commit 9fe957f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def _update_metastore(
res = requests.post(f'{META_STORE_SERVICE}/databases/{database_id}/files',
json=request_data, headers=headers)
except Exception:
return (False, res)
return (False, None)

return (True, res)

Expand Down
2 changes: 1 addition & 1 deletion api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
API_META_STORE_SERVICE_HOST = os.environ.get('API_META_STORE_SERVICE_HOST')
API_META_STORE_SERVICE_PORT = os.environ.get('API_META_STORE_SERVICE_PORT')
if API_META_STORE_SERVICE_HOST and API_META_STORE_SERVICE_PORT:
META_STORE_SERVICE = f'{API_META_STORE_SERVICE_HOST}:{API_META_STORE_SERVICE_PORT}'
META_STORE_SERVICE = f'http://{API_META_STORE_SERVICE_HOST}:{API_META_STORE_SERVICE_PORT}'
else:
META_STORE_SERVICE = 'https://demo.dataware-tools.com/api/latest/meta_store'

0 comments on commit 9fe957f

Please sign in to comment.