Skip to content

Commit f250539

Browse files
committed
reworked db output processing
1 parent cc476bc commit f250539

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

databases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def add_output(btc, coloramt, coloraddress, spent, spentat, destination, txhash,
4646
dbstring=dbstring + btc+"','"+coloramt+"','"+coloraddress+"','"+spent+"','"+spentat+"','"+destination+"','"+txhash
4747
dbstring=dbstring+"','"+ txhash_index+"','"+blockmade+"','"+r+"');"
4848

49-
print dbstring
49+
#print dbstring
5050
result=dbexecute(dbstring, False)
5151
return result
5252

otherworker.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# import time
2-
# from main import workerstuff
3-
#
4-
# start=time.time()
5-
# interval=30
6-
# while True:
7-
# if time.time()>=interval+start:
8-
# start=time.time()
9-
# workerstuff()
1+
import time
2+
from main import workerstuff
3+
4+
start=time.time()
5+
interval=30
6+
while True:
7+
if time.time()>=interval+start:
8+
start=time.time()
9+
workerstuff()

workertasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def output_db(blockn):
249249
inp=inp[0:len(inp)-1]
250250
for x in inp:
251251
dbstring="SELECT color_amount from outputs where txhash_index='"+x+"';"
252-
print dbstring
252+
#print dbstring
253253
colinps=databases.dbexecute(dbstring,True)
254254
for colinp in colinps:
255255
totalin=totalin+colinp[0]

0 commit comments

Comments
 (0)