Permalink
Browse files

parse battle info, split when all teams have score 0

  • Loading branch information...
1 parent f5cf6c5 commit eff20b3d286ac053114c8952d55cd7175179b5e1 @dalkvist committed Apr 11, 2013
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/bf3/info.clj
View
@@ -53,12 +53,10 @@
(#(partition-by
(fn [b] (str (:gameId b) (:currentMap b) (:gameMode b) (:mapVariant b)
(:vehicles b) (:mapMode b)
- (->> b :users (partition-by :team)
- (map (fn [team] (->> team (map :clanTags) frequencies
- (sort-by second) reverse first first)))
- (reduce str))
- (some (fn [[t s]] (apply = (vals (select-keys s [:max :current]))))
- (:stats b)))) %))
+ (every? (fn [[t s]] (= 0 (:score s)))
+ (if (->> b :stats :1 :score)
+ (->> b :stats)
+ (->> b :live bf3.live/parse-info :stats))))) %))
(filter #(< 15 (count %))))))
(comment

0 comments on commit eff20b3

Please sign in to comment.