Skip to content

Commit

Permalink
bugfix #152
Browse files Browse the repository at this point in the history
  • Loading branch information
answerquest committed Aug 31, 2019
1 parent 78da023 commit 98f5333
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

A browser-based user interface for creating, editing, exporting of static GTFS (General Transit Feed Specification Reference) feeds for a public transit authority.

**Release Status** : V 3.4.3 (live branch may be some commits ahead)
**Release Status** : V 3.4.4 (live branch may be some commits ahead)
Download from [Releases page](https://github.com/WRI-Cities/static-GTFS-manager/releases/).
- Windows binary is available in the repo itself, just double-click GTFSManager.exe to start the program.
- Mac, Ubuntu users can run by first installing docker, then double-clicking two scripts. See [Running with Docker on any OS](https://github.com/WRI-Cities/static-GTFS-manager/wiki/Running-with-Docker-on-any-OS)
Expand Down
2 changes: 1 addition & 1 deletion config/settings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// from commonfuncs.js

const VERSION = 'v3.4.3';
const VERSION = 'v3.4.4';
const APIpath = 'API/';
const CURRENCY = 'INR';
// this flag tells whether it is mandatory for all UIDs to be in capitals or not.
Expand Down
19 changes: 9 additions & 10 deletions js/tripstimings.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,22 +524,21 @@ function getPythonCalendar() {
if (xhr.status === 200) { //we have got a Response
console.log(`Loaded data from Server API/calendar .`);
var data = JSON.parse(xhr.responseText);

var dropdown = ''; var selectedFlag = false;
data.forEach(function(row){
var start = row['start_date'];
var end = row['end_date'];
//if(!start || !end) continue; // didn't work

days = '';
days += ( row['monday']? 'M':'_')
days += ( row['tuesday']? 'T':'_')
days += ( row['wednesday']? 'W':'_')
days += ( row['thursday']? 'T':'_')
days += ( row['friday']? 'F':'_')
days += ' ';
days += ( row['saturday']? 'S':'_')
days += ( row['sunday']? 'S':'_')
days += ( row['monday']=='1' ? 'M':'_')
days += ( row['tuesday']=='1' ? 'T':'_')
days += ( row['wednesday']=='1'? 'W':'_')
days += ( row['thursday']=='1'? 'T':'_')
days += ( row['friday']=='1'? 'F':'_')
//days += ' ';
days += ( row['saturday']=='1'? 'Sa':'_')
days += ( row['sunday']=='1'? 'Su':'_')

serviceListGlobal[row['service_id']] = row['service_id'] + ': ' + days + ', ' + start + '-' + end;

Expand All @@ -548,7 +547,7 @@ function getPythonCalendar() {
if(!selectedFlag) {
select = ' selected="selected"'; selectedFlag = true;
}
dropdown += '<option value="' + row['service_id'] + '"' + select + '>' + row['service_id'] + ': ' + days + ', ' + start + '-' + end + '</option>';
dropdown += `<option value="${row['service_id']}"${select}>${row['service_id']}:${days}, exp.${end}</option>"`;
});
$('#trip_calendar').html(dropdown);

Expand Down

0 comments on commit 98f5333

Please sign in to comment.