This commit is contained in:
parent
2e31e99aae
commit
fbd25db750
@ -1,28 +0,0 @@
|
|||||||
version: '3'
|
|
||||||
|
|
||||||
networks:
|
|
||||||
backend:
|
|
||||||
external: false
|
|
||||||
|
|
||||||
services:
|
|
||||||
backend:
|
|
||||||
image: registry.kmlabz.com/onspot/backend
|
|
||||||
restart: always
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
environment:
|
|
||||||
- ONSPOT_REDIS_URL=redis://db:6379/0
|
|
||||||
- ONSPOT_ENCODED_SECRET_KEY=BSE64ENCODED32CHARSLONGSTRING
|
|
||||||
- ONSPOT_SPOTIFY_CLIENT_ID=CHANGEME
|
|
||||||
- ONSPOT_SPOTIFY_CLIENT_SECRET=KEEPMESECRET
|
|
||||||
ports:
|
|
||||||
- "127.0.0.1:8080:8080"
|
|
||||||
networks:
|
|
||||||
- backend
|
|
||||||
db:
|
|
||||||
image: redis
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "127.0.0.1:6379:6379"
|
|
||||||
networks:
|
|
||||||
- backend
|
|
@ -31,7 +31,6 @@ class APIInteractionResource(UserStoreResource):
|
|||||||
imagedata = spot_data[0]['images']
|
imagedata = spot_data[0]['images']
|
||||||
elif mb_type == "release":
|
elif mb_type == "release":
|
||||||
spot_data = self.spotify.search(q=querystring, type="album", limit=1)['albums']['items']
|
spot_data = self.spotify.search(q=querystring, type="album", limit=1)['albums']['items']
|
||||||
print(self.spotify.search(q=querystring, type="album", limit=1))
|
|
||||||
if not spot_data:
|
if not spot_data:
|
||||||
return None, None, None
|
return None, None, None
|
||||||
spotify_uri += "album:"
|
spotify_uri += "album:"
|
||||||
|
Loading…
Reference in New Issue
Block a user