|
@@ -276,7 +276,7 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
var client = _azureCosmos.GetCosmosClient();
|
|
|
List<object> courses = new List<object>();
|
|
|
- var query = $"select c.code,c.id,c.name,c.period,c.subject,c.scope from c";
|
|
|
+ var query = $"select c.code,c.id,c.no,c.name,c.period,c.subject,c.scope from c";
|
|
|
if (scope.ToString().Equals("school", StringComparison.OrdinalIgnoreCase))
|
|
|
{
|
|
|
await foreach (var item in client.GetContainer("TEAMModelOS", "School").GetItemQueryStreamIterator(queryText: query, requestOptions: new QueryRequestOptions() { PartitionKey = new PartitionKey($"Course-{school_code.GetString()}") }))
|