示例#1
0
        private RunAnalytics analyzeRun(RunImport import)
        {
            var analytics = _analytics.Analyze(import);

            _analyticsWriter.Upsert(analytics);
            return(analytics);
        }
        public void Adjust(RunManuals manuals)
        {
            var analytics = _analyticsReader.Get(manuals.Worldname);

            analytics.Timings = applyManualInput(analytics.Timings, manuals);
            _analyticsWriter.Upsert(analytics);
        }
示例#3
0
        public IActionResult ReAnalyze()
        {
            var imports = _importReader.Get();

            foreach (var import in imports)
            {
                var analytics = _analyticsModules.Analyze(import);
                _analyticsWriter.Upsert(analytics);
            }

            _runIndexer.Index();

            return(RedirectToAction("Index"));
        }
示例#4
0
        public void Index()
        {
            var analytics = _reader.Get();

            var index = _initialIndex + 1;

            foreach (var analytic in analytics.OrderBy(x => x.Timings.StartedOn))
            {
                if (analytic.Outcome == Outcomes.Unknown || analytic.Outcome == Outcomes.Untouched)
                {
                    continue;
                }

                analytic.Index = index;
                _writer.Upsert(analytic);
                index++;
            }
        }