From 232d3ca0c89d5fc81c1aafe55407348db3831a3d Mon Sep 17 00:00:00 2001 From: Andy Sotheran Date: Thu, 6 Feb 2020 23:28:12 +0000 Subject: [PATCH] [06.02.20] callable issue --- src/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 9de4efc..5144954 100644 --- a/src/main.py +++ b/src/main.py @@ -1,11 +1,14 @@ #!/usr/bin/env python from threading import Thread -from pricing.collector import collector +import src.pricing.collector as collector + +def callCollector(args): + collector(args) if __name__=='__main__': # Dynamically create new child for each currency currencies = [ "btc_gbp" ] for i in range(len(currencies)): - Thread(target = collector("btc_gbp")).start() \ No newline at end of file + Thread(target=callCollector, args=(1,)).start() \ No newline at end of file