From daae913c18ea15dcb9693818829b8b4a3524c076 Mon Sep 17 00:00:00 2001 From: Joerg Platte Date: Wed, 21 Nov 2012 17:19:18 +0100 Subject: [PATCH 1/3] Version bump --- buschjaeger-Info.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buschjaeger-Info.plist b/buschjaeger-Info.plist index 8202e0b3c..80b4b0323 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 From 6eb9882350f1b20de27df7bc36a4573409bb10bd Mon Sep 17 00:00:00 2001 From: Joerg Platte Date: Wed, 21 Nov 2012 17:33:57 +0100 Subject: [PATCH 2/3] adjust delhistory path --- Classes/BuschJaegerConfiguration.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From 3aa5b27160180e7881988d348b4b5a9e8ad99229 Mon Sep 17 00:00:00 2001 From: Joerg Platte Date: Thu, 22 Nov 2012 16:34:58 +0100 Subject: [PATCH 3/3] fix history station bug --- Classes/Model/History.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;