feat: boost academic terms dynamically

This commit is contained in:
Wieland Schöbl
2019-09-24 10:44:40 +02:00
committed by Rainer Killinger
parent afd324fc6a
commit 13938ecf21
7 changed files with 164 additions and 37 deletions

View File

@@ -1,3 +1,5 @@
// tslint:disable:no-default-export
// tslint:disable:no-magic-numbers
import {SCConfigFile, SCThingType} from '@openstapps/core';
/**
@@ -184,10 +186,6 @@ const config: Partial<SCConfigFile> = {
{
factor: 1,
fields: {
'academicTerms.acronym': {
'SS 2018': 1.05,
'WS 2018/19': 1.1,
},
'categories': {
'course': 1.08,
'integrated course': 1.08,
@@ -225,6 +223,25 @@ const config: Partial<SCConfigFile> = {
type: SCThingType.Dish,
},
],
dining: [
{
factor: 1,
fields: {
'categories': {
'cafe': 2,
'canteen': 2,
'restaurant': 2,
'restroom': 1.2,
'student canteen': 2,
},
},
type: SCThingType.Building,
},
{
factor: 2,
type: SCThingType.Dish,
},
],
place: [
{
factor: 2,
@@ -239,28 +256,10 @@ const config: Partial<SCConfigFile> = {
type: SCThingType.Room,
},
],
dining: [
{
factor: 1,
fields: {
'categories': {
'cafe': 2,
'restaurant': 2,
'canteen': 2,
'student canteen': 2,
'restroom': 1.2,
},
},
type: SCThingType.Building,
},
{
factor: 2,
type: SCThingType.Dish,
},
],
},
},
uid: 'b-tu',
};
// tslint:disable-next-line:no-default-export
export default config;