Skip to content

Commit 89d6492

Browse files
committed
ODDS_NEW magic number fix
1 parent ba6adad commit 89d6492

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

data_rows/DataRow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import stringify from "csv-stringify";
22
import fs from "graceful-fs";
33

44
export default class DataRow {
5-
oddsNew() {
5+
static oddsNew() {
66
return 1;
77
}
88

data_rows/LoadHistory.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import DataRow from "./DataRow";
22
import TYPES from "./Types";
33

4+
const ODDS_NEW = 0.2;
5+
46
/**
57
* LOAD_HISTORY View
68
*
@@ -16,7 +18,7 @@ export default class LoadHistory extends DataRow {
1618
}
1719

1820
static oddsNew() {
19-
return 0.2;
21+
return ODDS_NEW;
2022
}
2123

2224
static types() {

data_rows/QueryHistory.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import LoginHistory from "./LoginHistory";
55
import TYPES from "./Types";
66
import * as helpers from "../helpers";
77

8+
const ODDS_NEW = 0.2;
9+
810
/**
911
* QUERY_HISTORY View
1012
*
@@ -81,7 +83,7 @@ export default class QueryHistory extends DataRow {
8183
}
8284

8385
static oddsNew() {
84-
return 0.3;
86+
return ODDS_NEW;
8587
}
8688

8789
static types() {

0 commit comments

Comments
 (0)