Mixonomer/music/model/config.py

22 lines
634 B
Python
Raw Normal View History

from fireo.models import Model
from fireo.fields import TextField, BooleanField, DateTime, NumberField, ListField
class Config(Model):
2021-03-24 10:06:54 +00:00
"""Service-level config data structure for app keys and settings
"""
class Meta:
collection_name = 'config'
2021-03-24 10:06:54 +00:00
"""Set correct path in Firestore
"""
spotify_client_id = TextField()
spotify_client_secret = TextField()
last_fm_client_id = TextField()
playlist_cloud_operating_mode = TextField() # task, function
2021-03-24 10:06:54 +00:00
"""Determines whether playlist and tag update operations are done by Cloud Tasks or Functions
"""
secret_key = TextField()