diff --git a/Classes/BuschJaegerConfiguration.m b/Classes/BuschJaegerConfiguration.m index b0179f9a5..1403fdd4e 100644 --- a/Classes/BuschJaegerConfiguration.m +++ b/Classes/BuschJaegerConfiguration.m @@ -541,7 +541,7 @@ static NSString *const CONFIGURATION_HOME_AP_KEY = @"CONFIGURATION_HOME_AP_KEY"; - (BOOL)removeHistory:(History*)ahistory delegate:(id)delegate { - NSString *url = [NSString stringWithFormat:@"%@/adduser.cgi?type=delhistory&id=%d", [self getGateway], ahistory.ID]; + NSString *url = [NSString stringWithFormat:@"%@/cgi-bin/adduser.cgi?type=delhistory&id=%d", [self getGateway], ahistory.ID]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:5]; if(request != nil) { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, (unsigned long)NULL), ^(void) { diff --git a/Classes/Model/History.m b/Classes/Model/History.m index e8e5a5267..997fc597e 100644 --- a/Classes/Model/History.m +++ b/Classes/Model/History.m @@ -59,7 +59,7 @@ history.date = [dateFormat dateFromString:stringDate]; [dateFormat release]; - history.stationID = [[line substringWithRange:[result rangeAtIndex:3]] intValue]; + history.stationID = [[line substringWithRange:[result rangeAtIndex:3]] intValue] -1; history.incoming = [[line substringWithRange:[result rangeAtIndex:4]] compare:@"i" options:NSCaseInsensitiveSearch] == 0; diff --git a/buschjaeger-Info.plist b/buschjaeger-Info.plist index 071283a12..2dbd8b8bf 100644 --- a/buschjaeger-Info.plist +++ b/buschjaeger-Info.plist @@ -45,11 +45,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.2.1 + 0.2.2 CFBundleSignature ???? CFBundleVersion - 0.2.1 + 0.2.2 NSMainNibFile BuschJaegerApp NSMainNibFile~ipad