Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added starting items to /matches endpoint #2254

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
removed starter items from process logs
27bslash committed Oct 15, 2020
commit 41b9455d3b06fa8bd2a0f7af25e49121d96c89ca
2 changes: 1 addition & 1 deletion processors/processLogParse.js
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ function translate(s) {
* */
function processReduce(entries, meta) {
const result = entries.filter((e) => {
if (e.type === 'DOTA_COMBATLOG_PURCHASE' || e.type === 'STARTING_ITEM'
if (e.type === 'DOTA_COMBATLOG_PURCHASE'
|| (e.type === 'DOTA_COMBATLOG_DEATH' && insignificantDeaths.every(prefix => e.targetname.indexOf(prefix) !== 0))
) {
return Boolean(e.time);