aboutsummaryrefslogtreecommitdiff
path: root/src/server/lib
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-08 18:03:50 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-08 18:03:50 +0100
commit3989338f0fc2bd394716b4199192b869b8e9bf3b (patch)
treeca7cf4b7c54afb61a178d88bebc5a179035afd10 /src/server/lib
parenta07e3de412d80a9aa56c580f2afe62025b0878f3 (diff)
Add basis schedule support to the backend
Diffstat (limited to 'src/server/lib')
-rw-r--r--src/server/lib/getURLOfUser.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/lib/getURLOfUser.js b/src/server/lib/getURLOfUser.js
index 82b0180..f44d1a3 100644
--- a/src/server/lib/getURLOfUser.js
+++ b/src/server/lib/getURLOfUser.js
@@ -1,8 +1,8 @@
const leftPad = require('left-pad'); // I imported this just to piss you off ;)
-function getURLOfUser(type, index, week) {
- return 'http://www.meetingpointmco.nl/Roosters-AL/doc/dagroosters/' +
- `${leftPad(week, 2, '0')}/${type}/${type}${leftPad(index + 1, 5, '0')}.htm`;
+function getURLOfUser(scheduleType, type, index, week) {
+ return `http://www.meetingpointmco.nl/Roosters-AL/doc/${scheduleType}roosters/` +
+ `${leftPad(week, 2, '0')}/${type}/${type}${leftPad(index + 1, 5, '0')}.htm`;
}
module.exports = getURLOfUser;