[chronojump] processMultiDatabases: minor fixes
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] processMultiDatabases: minor fixes
- Date: Sat, 18 Jan 2020 17:05:32 +0000 (UTC)
commit 462ad4b534888102bf9a4b0364dd880a668c0387
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat Jan 18 18:05:21 2020 +0100
processMultiDatabases: minor fixes
processMultiDatabases/computerDB.cs | 6 +++---
processMultiDatabases/person.cs | 12 ++++++------
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/processMultiDatabases/computerDB.cs b/processMultiDatabases/computerDB.cs
index 39783fca..07f1dc8d 100644
--- a/processMultiDatabases/computerDB.cs
+++ b/processMultiDatabases/computerDB.cs
@@ -182,7 +182,7 @@ class ComputerDBManage
path + "Encoder_Ulm/Laptop1_Chronojump_für Maria_Nov2019/chronojump/database",
"",
8,4,7,
- "PRE", "a2", "a3", "a4"));
+ "PRE", "A2", "A3", "A4")); //in caps because comparison is done in caps
/*
list.Add(new ComputerDB(
"ulm",
@@ -190,14 +190,14 @@ class ComputerDBManage
path + "Encoder_Ulm/Laptop2_Chronojump_für Maria_Nov2019/database",
"",
8,9,7, //note: they have also jumps on 4
- "PRE", "a2", "a3", "a4"));
+ "PRE", "A2", "A3", "A4"));
list.Add(new ComputerDB(
"ulm",
"ulm3",
path + "Encoder_Ulm/Laptop3_Chronojump_für Maria_Nov2019/database",
"",
8,4,7,
- "PRE", "a2", "a3", "a4"));
+ "PRE", "A2", "A3", "A4"));
*/
}
}
diff --git a/processMultiDatabases/person.cs b/processMultiDatabases/person.cs
index 3c89324c..00315162 100644
--- a/processMultiDatabases/person.cs
+++ b/processMultiDatabases/person.cs
@@ -95,12 +95,12 @@ public class Person {
{
//note that just after the A2 can be the code, eg. A404559, so remove the A2 or a3 or
A4 if exists
string nameClean = name;
- nameClean.Replace("a2", "");
- nameClean.Replace("A2", "");
- nameClean.Replace("a3", "");
- nameClean.Replace("A3", "");
- nameClean.Replace("a4", "");
- nameClean.Replace("A5", "");
+ nameClean = nameClean.Replace("a2", "");
+ nameClean = nameClean.Replace("A2", "");
+ nameClean = nameClean.Replace("a3", "");
+ nameClean = nameClean.Replace("A3", "");
+ nameClean = nameClean.Replace("a4", "");
+ nameClean = nameClean.Replace("A5", "");
//then return the number
Match match = Regex.Match(nameClean, @"(\d+)");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]