summaryrefslogtreecommitdiff
path: root/src/sources/FileSource.ts
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-05-01 20:26:07 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-05-01 20:38:01 +0200
commit567a0f7a2f248cd25b8a5e0e357f9b10c16a9036 (patch)
tree5c0e0e8790fe8f7be2eecfcb4fe70222b7a847da /src/sources/FileSource.ts
parent1c0c2e4be26dcd68fdb538edd5845ea702b9fa98 (diff)
downloadsplus-567a0f7a2f248cd25b8a5e0e357f9b10c16a9036.tar.gz
splus-567a0f7a2f248cd25b8a5e0e357f9b10c16a9036.zip
Retrieve schedule for current week, add course config var (closes #3)
Diffstat (limited to 'src/sources/FileSource.ts')
-rw-r--r--src/sources/FileSource.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sources/FileSource.ts b/src/sources/FileSource.ts
index fd4f6f7..57e51ae 100644
--- a/src/sources/FileSource.ts
+++ b/src/sources/FileSource.ts
@@ -6,11 +6,10 @@ export class FileSource implements ISource {
private _path: string;
private _data: string = null;
- constructor(path: string) {
- this._path = path;
+ constructor(course: string) {
}
- getData(): Promise<string> {
+ getData(weekOfYear: number): Promise<string> {
if (this._data) {
return Promise.resolve(this._data);
}