Skip to content

Commit

Permalink
TradeDB() now takes buildLinks and loadTrades arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Oct 26, 2014
1 parent fd64016 commit eb130ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class TradeDB(object):
]


def __init__(self, dbFilename=None, sqlFilename=None, pricesFilename=None, debug=0, maxSystemLinkLy=None):
def __init__(self, dbFilename=None, sqlFilename=None, pricesFilename=None, debug=0, maxSystemLinkLy=None, buildLinks=True, includeTrades=True):
self.dbPath = Path(dbFilename or TradeDB.defaultDB)
self.dbURI = str(self.dbPath)
self.sqlPath = Path(sqlFilename or TradeDB.defaultSQL)
Expand All @@ -363,7 +363,7 @@ def __init__(self, dbFilename=None, sqlFilename=None, pricesFilename=None, debug

self.reloadCache()

self.load(maxSystemLinkLy=maxSystemLinkLy)
self.load(maxSystemLinkLy=maxSystemLinkLy, buildLinks=buildLinks, includeTrades=includeTrades)


############################################################
Expand Down

0 comments on commit eb130ba

Please sign in to comment.