freelancing-solutions / gcp-database-as-a-service-stock-markets

GCP NDB database as a service for a stock market investment and social web services.
MIT License
3 stars 1 forks source link

- data verification needed here #515

Open freelancing-solutions opened 3 years ago

freelancing-solutions commented 3 years ago

https://github.com/freelancing-solutions/gcp-database-as-a-service-stock-markets/blob/6047891007ac89f5b2fcad02fd570d3446baf961/data_service/views/settings.py#L34


    @use_context
    @handle_view_errors
    def add_exchange(self, country: str = None, name: str = None) -> tuple:
        # TODO - data verification needed here
        exchange_instance: ExchangeDataModel = ExchangeDataModel()
        exchange_instance.set_exchange_country(country=country)
        exchange_instance.set_exchange_name(exchange=name)

d9a9d3ce7077ce99cecbf97d6bd28734933cc6b1