Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 4cb8ae48

Přidáno uživatelem Alex Konig před téměř 4 roky(ů)

re #8842 Fixing MergeAttendance

Zobrazit rozdíly:

Server/ServerApp/Parser/Parsers/DataParser.cs
128 128
            int indexJis = 0, indexLogin = 0;
129 129
            while (true)
130 130
            {
131
                if (indexJis >= jisList.Count && indexLogin >= loginList.Count)
131
                if (indexJis >= jisList.Count || indexLogin >= loginList.Count)
132 132
                    break;
133 133

  
134 134
                ActivityInfo jis = jisList[indexJis];
......
177 177

  
178 178
            }
179 179

  
180
            // add all not yet processed
181
            if (indexJis < jisList.Count)
182
                res.AddRange(jisList.GetRange(indexJis, jisList.Count - indexJis));
183
                    
184
                    
185
            if (indexLogin < loginList.Count)
186
                res.AddRange(jisList.GetRange(indexLogin, loginList.Count - indexLogin));
187

  
180 188
            return res;
181 189
        }
182 190

  
Server/ServerApp/Program.cs
84 84

  
85 85
			// TODO nastavit čas
86 86
			IDataParser p = new DataParser(dd);
87
			DateTime startT = new DateTime(2018, 6, 5);
88
			DateTime endT = new DateTime(2019, 10, 30);
87
			DateTime startT = new DateTime(2019, 10, 5);
88
			DateTime endT = new DateTime(2020, 12, 23);
89 89
			p.Parse(startT, endT, wholeDay: false, interval: 3);
90 90

  
91
			Console.WriteLine(p.WeatherList.Count);
91
			//parse(new DateTime(2019, 10, 5), , interval = 1, wholeDay = true)
92

  
92 93

  
93 94
			// test - connection:
94 95
			//ConnectionListener cl = new ConnectionListener(int.Parse(args[0])/*8000*//*int.Parse(config.Port)*/);

Také k dispozici: Unified diff