diff --git a/src/history/historyData.js b/generated/historyData.js similarity index 99% rename from src/history/historyData.js rename to generated/historyData.js index 93f976e..a5d91e6 100644 --- a/src/history/historyData.js +++ b/generated/historyData.js @@ -145518,497 +145518,884 @@ module.exports = [ { duration: '01:00:00', price: 19, doubleLesson: false }, { duration: '01:00:00', - time: '16:30', - date: '2016-02-27', + time: '21:30', + date: '2016-03-02', res: 2, field: 'Kupla K2', location: 'meilahti', type: 'bubble', - price: 24, - doubleLesson: true }, + price: 29, + doubleLesson: false }, { duration: '01:00:00', - time: '16:30', - date: '2016-02-27', + time: '21:30', + date: '2016-03-02', res: 3, field: 'Kupla K3', location: 'meilahti', type: 'bubble', - price: 24, - doubleLesson: true }, - { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', - res: 4, - field: 'Kupla K4', - location: 'meilahti', - type: 'bubble', - price: 24, - doubleLesson: true }, + price: 29, + doubleLesson: false }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', + time: '22:00', + date: '2016-03-02', res: 5, field: 'Kupla K5', location: 'meilahti', type: 'bubble', - price: 24, - doubleLesson: true }, - { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', - res: 6, - field: 'Sisä K6', - location: 'meilahti', - type: 'indoor', - price: 27, + price: 16, doubleLesson: false }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', + time: '22:00', + date: '2016-03-02', res: 7, field: 'Sisä K7', location: 'meilahti', type: 'indoor', - price: 27, - doubleLesson: true }, + price: 17, + doubleLesson: false }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', + time: '22:00', + date: '2016-03-02', res: 8, field: 'Sisä K8', location: 'meilahti', type: 'indoor', - price: 27, - doubleLesson: true }, + price: 17, + doubleLesson: false }, { duration: '01:00:00', - time: '17:30', - date: '2016-02-27', - res: 2, - field: 'Kupla K2', - location: 'meilahti', + time: '20:00', + date: '2016-03-02', + res: 11, + field: 'Massakupla K11', + location: 'herttoniemi', type: 'bubble', - price: 24, - doubleLesson: true }, + price: 26.5, + doubleLesson: false }, { duration: '01:00:00', - time: '17:30', - date: '2016-02-27', + time: '21:30', + date: '2016-03-02', + res: 7, + field: 'Janus K7', + location: 'herttoniemi', + type: 'indoor', + price: 22.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-02', + res: 9, + field: 'Janus K9', + location: 'herttoniemi', + type: 'indoor', + price: 22.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-02', res: 3, - field: 'Kupla K3', - location: 'meilahti', - type: 'bubble', - price: 24, - doubleLesson: true }, + field: 'Sisä K3', + location: 'herttoniemi', + type: 'indoor', + price: 13.5, + doubleLesson: false }, { duration: '01:00:00', - time: '18:00', - date: '2016-02-27', + time: '22:00', + date: '2016-03-02', res: 4, - field: 'Kupla K4', - location: 'meilahti', - type: 'bubble', - price: 24, - doubleLesson: true }, + field: 'Sisä K4', + location: 'herttoniemi', + type: 'indoor', + price: 13.5, + doubleLesson: false }, { duration: '01:00:00', - time: '18:00', - date: '2016-02-27', + time: '22:00', + date: '2016-03-02', res: 5, - field: 'Kupla K5', - location: 'meilahti', - type: 'bubble', - price: 24, - doubleLesson: true }, + field: 'Sisä K5', + location: 'herttoniemi', + type: 'indoor', + price: 13.5, + doubleLesson: false }, { duration: '01:00:00', - time: '18:00', - date: '2016-02-27', + time: '22:00', + date: '2016-03-02', + res: 6, + field: 'Sisä K6', + location: 'herttoniemi', + type: 'indoor', + price: 13.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-02', + res: 2, + field: 'Bolltex Te2', + location: 'kulosaari', + type: 'indoor', + price: 34, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-02', + res: 3, + field: 'Green set Te3', + location: 'kulosaari', + type: 'indoor', + price: 34, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-02', + res: 3, + field: 'K3', + location: 'tapiola', + type: 'indoor', + price: 20, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-02', + res: 1, + field: 'K1', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-02', + res: 4, + field: 'K4', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-02', + res: 5, + field: 'K5', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-02', res: 7, - field: 'Sisä K7', - location: 'meilahti', + field: 'K7', + location: 'tapiola', type: 'indoor', - price: 27, - doubleLesson: true }, + price: 17, + doubleLesson: false }, { duration: '01:00:00', - time: '18:00', - date: '2016-02-27', - res: 8, - field: 'Sisä K8', - location: 'meilahti', + time: '21:00', + date: '2016-03-02', + res: 1, + field: 'K7', + location: 'hiekkaharju', type: 'indoor', - price: 27, - doubleLesson: true }, + price: 23, + doubleLesson: false }, { duration: '01:00:00', - time: '18:30', - date: '2016-02-27', - res: 2, - field: 'Kupla K2', - location: 'meilahti', + time: '21:00', + date: '2016-03-02', + res: 4, + field: 'Kaarihalli K5', + location: 'hiekkaharju', type: 'bubble', - price: 24, + price: 21, doubleLesson: false }, { duration: '01:00:00', - time: '18:30', - date: '2016-02-27', - res: 3, - field: 'Kupla K3', - location: 'meilahti', + time: '21:00', + date: '2016-03-02', + res: 5, + field: 'Kaarihalli K6', + location: 'hiekkaharju', type: 'bubble', - price: 24, + price: 21, doubleLesson: false }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', + time: '21:30', + date: '2016-03-02', res: 1, - field: 'Kupla K1', - location: 'meilahti', + field: 'K7', + location: 'hiekkaharju', + type: 'indoor', + price: 23, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-02', + res: 4, + field: 'Kaarihalli K5', + location: 'hiekkaharju', type: 'bubble', - price: 24, + price: 21, doubleLesson: false }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', + time: '21:30', + date: '2016-03-02', + res: 5, + field: 'Kaarihalli K6', + location: 'hiekkaharju', + type: 'bubble', + price: 21, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-03', res: 4, field: 'Kupla K4', location: 'meilahti', type: 'bubble', - price: 24, + price: 29, doubleLesson: false }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', + time: '21:30', + date: '2016-03-03', + res: 2, + field: 'Kupla K2', + location: 'meilahti', + type: 'bubble', + price: 29, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', res: 5, field: 'Kupla K5', location: 'meilahti', type: 'bubble', - price: 24, + price: 16, doubleLesson: false }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', - res: 6, - field: 'Sisä K6', + time: '22:00', + date: '2016-03-03', + res: 8, + field: 'Sisä K8', location: 'meilahti', type: 'indoor', - price: 27, + price: 17, doubleLesson: false }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', - res: 7, - field: 'Sisä K7', - location: 'meilahti', + time: '20:00', + date: '2016-03-03', + res: 13, + field: 'Massakupla K13', + location: 'herttoniemi', + type: 'bubble', + price: 26.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-03', + res: 4, + field: 'Sisä K4', + location: 'herttoniemi', type: 'indoor', - price: 27, + price: 22.5, + doubleLesson: true }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', + res: 2, + field: 'Sisä K2', + location: 'herttoniemi', + type: 'indoor', + price: 13.5, doubleLesson: false }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', - res: 8, - field: 'Sisä K8', - location: 'meilahti', + time: '22:00', + date: '2016-03-03', + res: 3, + field: 'Sisä K3', + location: 'herttoniemi', type: 'indoor', - price: 27, + price: 13.5, doubleLesson: false }, { duration: '01:00:00', - time: '16:00', - date: '2016-02-27', - res: 13, - field: 'Massakupla K13', + time: '22:00', + date: '2016-03-03', + res: 4, + field: 'Sisä K4', location: 'herttoniemi', + type: 'indoor', + price: 13.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', + res: 5, + field: 'Sisä K5', + location: 'herttoniemi', + type: 'indoor', + price: 13.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', + res: 8, + field: 'Janus K8', + location: 'herttoniemi', + type: 'indoor', + price: 13.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-03', + res: 2, + field: 'Bolltex Te2', + location: 'kulosaari', + type: 'indoor', + price: 34, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', + res: 4, + field: 'K4', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', + res: 5, + field: 'K5', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', + res: 6, + field: 'K6', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-03', + res: 4, + field: 'D', + location: 'laajasalo', + type: 'indoor', + price: 19, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-03', + res: 2, + field: 'K8', + location: 'hiekkaharju', + type: 'indoor', + price: 23, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-03', + res: 3, + field: 'K9', + location: 'hiekkaharju', + type: 'indoor', + price: 23, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-03', + res: 5, + field: 'Kaarihalli K6', + location: 'hiekkaharju', type: 'bubble', - price: 21.5, + price: 21, + doubleLesson: false }, + { duration: '01:00:00', + time: '20:00', + date: '2016-03-04', + res: 5, + field: 'Sisä K5', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, doubleLesson: true }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', - res: 13, - field: 'Massakupla K13', + time: '20:00', + date: '2016-03-04', + res: 6, + field: 'Sisä K6', location: 'herttoniemi', - type: 'bubble', - price: 21.5, + type: 'indoor', + price: 20.5, + doubleLesson: true }, + { duration: '01:00:00', + time: '20:30', + date: '2016-03-04', + res: 1, + field: 'Sisä K1', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '20:30', + date: '2016-03-04', + res: 8, + field: 'Janus K8', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '20:30', + date: '2016-03-04', + res: 9, + field: 'Janus K9', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-04', + res: 3, + field: 'Sisä K3', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-04', + res: 4, + field: 'Sisä K4', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-04', + res: 5, + field: 'Sisä K5', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-04', + res: 6, + field: 'Sisä K6', + location: 'herttoniemi', + type: 'indoor', + price: 20.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-04', + res: 5, + field: 'K5', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-04', + res: 6, + field: 'K6', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-04', + res: 7, + field: 'K7', + location: 'tapiola', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '20:30', + date: '2016-03-04', + res: 3, + field: 'C', + location: 'laajasalo', + type: 'indoor', + price: 24, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-04', + res: 2, + field: 'B', + location: 'laajasalo', + type: 'indoor', + price: 19, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-04', + res: 4, + field: 'D', + location: 'laajasalo', + type: 'indoor', + price: 19, + doubleLesson: false }, + { duration: '01:00:00', + time: '20:30', + date: '2016-03-05', + res: 2, + field: 'B', + location: 'laajasalo', + type: 'indoor', + price: 22, doubleLesson: true }, { duration: '01:00:00', - time: '18:00', - date: '2016-02-27', - res: 13, - field: 'Massakupla K13', + time: '21:00', + date: '2016-03-05', + res: 1, + field: 'A', + location: 'laajasalo', + type: 'indoor', + price: 19, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-05', + res: 2, + field: 'B', + location: 'laajasalo', + type: 'indoor', + price: 19, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-05', + res: 3, + field: 'C', + location: 'laajasalo', + type: 'indoor', + price: 19, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-06', + res: 1, + field: 'A', + location: 'laajasalo', + type: 'indoor', + price: 22, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-10', + res: 1, + field: 'Kupla K1', + location: 'meilahti', + type: 'bubble', + price: 29, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-10', + res: 4, + field: 'Kupla K4', + location: 'meilahti', + type: 'bubble', + price: 29, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-10', + res: 5, + field: 'Kupla K5', + location: 'meilahti', + type: 'bubble', + price: 29, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:30', + date: '2016-03-10', + res: 2, + field: 'Kupla K2', + location: 'meilahti', + type: 'bubble', + price: 29, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-10', + res: 6, + field: 'Sisä K6', + location: 'meilahti', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '22:00', + date: '2016-03-10', + res: 7, + field: 'Sisä K7', + location: 'meilahti', + type: 'indoor', + price: 17, + doubleLesson: false }, + { duration: '01:00:00', + time: '19:00', + date: '2016-03-10', + res: 11, + field: 'Massakupla K11', location: 'herttoniemi', type: 'bubble', - price: 21.5, + price: 26.5, doubleLesson: true }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', + time: '20:00', + date: '2016-03-10', res: 11, field: 'Massakupla K11', location: 'herttoniemi', type: 'bubble', - price: 15.5, + price: 26.5, doubleLesson: false }, { duration: '01:00:00', - time: '19:00', - date: '2016-02-27', + time: '20:00', + date: '2016-03-10', res: 13, field: 'Massakupla K13', location: 'herttoniemi', type: 'bubble', - price: 15.5, + price: 26.5, doubleLesson: false }, { duration: '01:00:00', - time: '16:00', - date: '2016-02-27', - res: 1, - field: 'Bolltex Te1', - location: 'kulosaari', + time: '21:00', + date: '2016-03-10', + res: 4, + field: 'Sisä K4', + location: 'herttoniemi', type: 'indoor', - price: 24, + price: 22.5, + doubleLesson: false }, + { duration: '01:00:00', + time: '21:00', + date: '2016-03-10', + res: 6, + field: 'Sisä K6', + location: 'herttoniemi', + type: 'indoor', + price: 22.5, doubleLesson: true }, { duration: '01:00:00', - time: '16:30', - date: '2016-02-27', + time: '21:30', + date: '2016-03-10', res: 1, - field: 'Bolltex Te1', - location: 'kulosaari', + field: 'Sisä K1', + location: 'herttoniemi', type: 'indoor', - price: 24, - doubleLesson: true }, + price: 22.5, + doubleLesson: false }, { duration: '01:00:00', - time: '16:30', - date: '2016-02-27', + time: '22:00', + date: '2016-03-10', res: 2, - field: 'Bolltex Te2', - location: 'kulosaari', + field: 'Sisä K2', + location: 'herttoniemi', type: 'indoor', - price: 24, + price: 13.5, doubleLesson: false }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', - res: 1, - field: 'Bolltex Te1', - location: 'kulosaari', + time: '22:00', + date: '2016-03-10', + res: 3, + field: 'Sisä K3', + location: 'herttoniemi', type: 'indoor', - price: 24, - doubleLesson: true }, + price: 13.5, + doubleLesson: false }, { duration: '01:00:00', - time: '17:30', - date: '2016-02-27', - res: 1, - field: 'Bolltex Te1', - location: 'kulosaari', + time: '22:00', + date: '2016-03-10', + res: 5, + field: 'Sisä K5', + location: 'herttoniemi', type: 'indoor', - price: 24, - doubleLesson: true }, + price: 13.5, + doubleLesson: false }, { duration: '01:00:00', - time: '18:00', - date: '2016-02-27', - res: 1, - field: 'Bolltex Te1', - location: 'kulosaari', + time: '22:00', + date: '2016-03-10', + res: 6, + field: 'Sisä K6', + location: 'herttoniemi', type: 'indoor', - price: 24, + price: 13.5, doubleLesson: false }, { duration: '01:00:00', - time: '18:00', - date: '2016-02-27', - res: 2, - field: 'Bolltex Te2', - location: 'kulosaari', + time: '22:00', + date: '2016-03-10', + res: 8, + field: 'Janus K8', + location: 'herttoniemi', type: 'indoor', - price: 24, + price: 13.5, doubleLesson: false }, { duration: '01:00:00', - time: '18:30', - date: '2016-02-27', - res: 1, - field: 'Bolltex Te1', + time: '19:30', + date: '2016-03-10', + res: 2, + field: 'Bolltex Te2', location: 'kulosaari', type: 'indoor', - price: 24, + price: 34, doubleLesson: false }, { duration: '01:00:00', - time: '18:30', - date: '2016-02-27', + time: '20:00', + date: '2016-03-10', res: 2, field: 'Bolltex Te2', location: 'kulosaari', type: 'indoor', - price: 24, + price: 34, doubleLesson: false }, { duration: '01:00:00', - time: '18:30', - date: '2016-02-27', - res: 3, - field: 'Green set Te3', + time: '21:30', + date: '2016-03-10', + res: 2, + field: 'Bolltex Te2', location: 'kulosaari', type: 'indoor', - price: 24, + price: 34, doubleLesson: false }, { duration: '01:00:00', - time: '15:30', - date: '2016-02-27', - res: 1, - field: 'K1', + time: '21:00', + date: '2016-03-10', + res: 4, + field: 'K4', location: 'tapiola', type: 'indoor', - price: 26, - doubleLesson: false }, + price: 30, + doubleLesson: true }, { duration: '01:00:00', - time: '15:30', - date: '2016-02-27', - res: 2, - field: 'K2', + time: '21:00', + date: '2016-03-10', + res: 6, + field: 'K6', location: 'tapiola', type: 'indoor', - price: 26, - doubleLesson: false }, + price: 30, + doubleLesson: true }, { duration: '01:00:00', - time: '19:30', - date: '2016-02-27', - res: 3, - field: 'K3', + time: '22:00', + date: '2016-03-10', + res: 4, + field: 'K4', location: 'tapiola', type: 'indoor', price: 17, doubleLesson: false }, { duration: '01:00:00', - time: '20:30', - date: '2016-02-27', - res: 3, - field: 'C', - location: 'laajasalo', - type: 'indoor', - price: 22, - doubleLesson: true }, - { duration: '01:00:00', - time: '21:30', - date: '2016-02-27', - res: 2, - field: 'B', - location: 'laajasalo', + time: '22:00', + date: '2016-03-10', + res: 5, + field: 'K5', + location: 'tapiola', type: 'indoor', - price: 19, + price: 17, doubleLesson: false }, { duration: '01:00:00', - time: '21:30', - date: '2016-02-27', - res: 3, - field: 'C', - location: 'laajasalo', + time: '22:00', + date: '2016-03-10', + res: 6, + field: 'K6', + location: 'tapiola', type: 'indoor', - price: 19, + price: 17, doubleLesson: false }, { duration: '01:00:00', - time: '16:00', - date: '2016-02-27', - res: 1, - field: 'K7', - location: 'hiekkaharju', + time: '22:00', + date: '2016-03-10', + res: 4, + field: 'D', + location: 'laajasalo', type: 'indoor', price: 19, doubleLesson: false }, { duration: '01:00:00', - time: '16:00', - date: '2016-02-27', - res: 5, - field: 'Kaarihalli K6', - location: 'hiekkaharju', - type: 'bubble', - price: 19, - doubleLesson: true }, - { duration: '01:00:00', - time: '16:30', - date: '2016-02-27', - res: 1, - field: 'K7', + time: '19:30', + date: '2016-03-10', + res: 2, + field: 'K8', location: 'hiekkaharju', type: 'indoor', - price: 19, + price: 27, doubleLesson: false }, { duration: '01:00:00', - time: '16:30', - date: '2016-02-27', - res: 4, - field: 'Kaarihalli K5', - location: 'hiekkaharju', - type: 'bubble', - price: 19, - doubleLesson: true }, - { duration: '01:00:00', - time: '16:30', - date: '2016-02-27', - res: 5, - field: 'Kaarihalli K6', - location: 'hiekkaharju', - type: 'bubble', - price: 19, - doubleLesson: true }, - { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', + time: '20:00', + date: '2016-03-10', res: 2, field: 'K8', location: 'hiekkaharju', type: 'indoor', - price: 19, + price: 27, doubleLesson: false }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', - res: 3, - field: 'K9', + time: '21:00', + date: '2016-03-10', + res: 1, + field: 'K7', location: 'hiekkaharju', type: 'indoor', - price: 19, + price: 23, doubleLesson: false }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', + time: '21:00', + date: '2016-03-10', res: 4, field: 'Kaarihalli K5', location: 'hiekkaharju', type: 'bubble', - price: 19, + price: 21, doubleLesson: false }, { duration: '01:00:00', - time: '17:00', - date: '2016-02-27', - res: 5, - field: 'Kaarihalli K6', + time: '21:30', + date: '2016-03-10', + res: 1, + field: 'K7', location: 'hiekkaharju', - type: 'bubble', - price: 19, + type: 'indoor', + price: 23, doubleLesson: false }, { duration: '01:00:00', - time: '17:30', - date: '2016-02-27', + time: '21:30', + date: '2016-03-10', res: 2, field: 'K8', location: 'hiekkaharju', type: 'indoor', - price: 19, + price: 23, doubleLesson: false }, { duration: '01:00:00', - time: '17:30', - date: '2016-02-27', + time: '21:30', + date: '2016-03-10', res: 3, field: 'K9', location: 'hiekkaharju', type: 'indoor', - price: 19, + price: 23, doubleLesson: false }, { duration: '01:00:00', - time: '17:30', - date: '2016-02-27', + time: '21:30', + date: '2016-03-10', res: 4, field: 'Kaarihalli K5', location: 'hiekkaharju', type: 'bubble', - price: 19, - doubleLesson: false }, - { duration: '01:00:00', - time: '17:30', - date: '2016-02-27', - res: 5, - field: 'Kaarihalli K6', - location: 'hiekkaharju', - type: 'bubble', - price: 19, + price: 21, doubleLesson: false } ] \ No newline at end of file diff --git a/src/locations.js b/generated/locations.js similarity index 98% rename from src/locations.js rename to generated/locations.js index 26c689c..361a261 100644 --- a/src/locations.js +++ b/generated/locations.js @@ -52,8 +52,8 @@ module.exports = [ { title: 'tali', address: 'Koivu-Mankkaan tie 5, 02200 Espoo', tel: '09 502 4700' }, { title: 'hiekkaharju', - lat: 60.3048739, - lng: 25.052336, + lat: 60.3043802, + lng: 25.0522693, url: 'https://www.slsystems.fi/hiekkaharjuntenniskeskus/', address: 'Tennistie 5, 01370 Vantaa', tel: '09 8731923' }, diff --git a/src/rates.js b/generated/rates.js similarity index 100% rename from src/rates.js rename to generated/rates.js diff --git a/scripts/fetchHistory.js b/scripts/fetchHistory.js index 36b8950..9876696 100755 --- a/scripts/fetchHistory.js +++ b/scripts/fetchHistory.js @@ -10,6 +10,6 @@ dao.getHistoryData((err, data) => { } else { var fileName = 'historyData.js' console.log('Writing history data to ' + fileName) - fs.writeFileSync(__dirname + '/../src/history/' + fileName, format.formatModule(data)) + fs.writeFileSync(__dirname + '/../generated/' + fileName, format.formatModule(data)) } }) diff --git a/scripts/fetchPrices.js b/scripts/fetchPrices.js index fa6b37c..8b3bef1 100755 --- a/scripts/fetchPrices.js +++ b/scripts/fetchPrices.js @@ -45,7 +45,7 @@ function fetchAll() { Bacon.combineTemplate(_.mapValues(sheets, fetchForOrCombineTemplate)) .onValue(function (data) { console.log('Writing rates to ' + fileName) - fs.writeFileSync(__dirname + '/../src/' + fileName, format.formatModule(data)) + fs.writeFileSync(__dirname + '/../generated/' + fileName, format.formatModule(data)) }) } diff --git a/scripts/updateLocations.js b/scripts/updateLocations.js index 7e402bf..b82f9a2 100755 --- a/scripts/updateLocations.js +++ b/scripts/updateLocations.js @@ -17,7 +17,7 @@ function locations() { }) })).onValue(function (data) { console.log('Writing locations to ' + fileName) - fs.writeFileSync(__dirname + '/../src/' + fileName, format.formatModule(data)) + fs.writeFileSync(__dirname + '/../generated/' + fileName, format.formatModule(data)) }) } diff --git a/src/dao/dao.js b/src/dao/dao.js index 9ca5147..e14b86b 100644 --- a/src/dao/dao.js +++ b/src/dao/dao.js @@ -6,7 +6,7 @@ var webTimmi = require('./webTimmiCrawler') var DateTime = require('dateutils').DateTime var MongoClient = require('mongodb').MongoClient var mongoUri = process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'mongodb://localhost/test'; -var rates = require('../rates') +var rates = require('../../generated/rates') var format = require('../format') module.exports = { diff --git a/src/front.js b/src/front.js index 92498a0..665fc90 100644 --- a/src/front.js +++ b/src/front.js @@ -9,7 +9,7 @@ attachFastClick(document.body) var $window = $(window) var $document = $(document) var markupForDateRange = require('./markupForDateRange') -var locations = require('./locations') +var locations = require('../generated/locations') const format = require('./format') var didScroll = false var alreadyLoadingMoreResults = false diff --git a/src/history/history.js b/src/history/history.js index 9f0c2a1..27fb314 100755 --- a/src/history/history.js +++ b/src/history/history.js @@ -1,11 +1,11 @@ #!/usr/bin/env node const _ = require('lodash') -const historyData = require('./historyData') +const historyData = require('../../generated/historyData') const DateTime = require('dateutils').DateTime const DateFormat = require('dateutils').DateFormat const DateLocale = require('dateutils').DateLocale const format = require('../format') -const rates = require('../rates') +const rates = require('../../generated/rates') const historyHtml = require('./history.html') const headHtml = require('../head.html') const dao = require('../dao/dao') diff --git a/src/mapView.js b/src/mapView.js index 35d8ee5..9a82fee 100644 --- a/src/mapView.js +++ b/src/mapView.js @@ -1,4 +1,4 @@ -var locations = require('./locations') +var locations = require('../generated/locations') module.exports = { renderMap: renderMap diff --git a/src/markupForDateRange.js b/src/markupForDateRange.js index fecc3b1..006406d 100644 --- a/src/markupForDateRange.js +++ b/src/markupForDateRange.js @@ -1,4 +1,4 @@ -var locations = require('./locations') +var locations = require('../generated/locations') var _ = require('lodash') const dateutils = require('dateutils') var DateTime = dateutils.DateTime