[longomatch] Do not include score, penalties and subs in the stats



commit 882f36959d07a15b42dcff64c7b37ff393c0ecfd
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Nov 18 20:48:43 2014 +0100

    Do not include score, penalties and subs in the stats

 LongoMatch.Core/Stats/ProjectStats.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Stats/ProjectStats.cs b/LongoMatch.Core/Stats/ProjectStats.cs
index 499ae46..ade9564 100644
--- a/LongoMatch.Core/Stats/ProjectStats.cs
+++ b/LongoMatch.Core/Stats/ProjectStats.cs
@@ -83,6 +83,10 @@ namespace LongoMatch.Core.Stats
                        EventTypeStats = new List <EventTypeStats> ();
                        
                        foreach (EventType evt in project.EventTypes) {
+                               if (evt is ScoreEventType || evt is SubstitutionEventType ||
+                                       evt is PenaltyCardEventType) {
+                                       continue;
+                               }
                                EventTypeStats evstats = new EventTypeStats (project, filter, evt);
                                EventTypeStats.Add (evstats);
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]