added slice value in readdata function
This commit is contained in:
parent
e13f45568b
commit
260fbc4570
@ -85,11 +85,11 @@ def writeDatatoBlockchain(text):
|
|||||||
def readDatafromBlockchain(cursor):
|
def readDatafromBlockchain(cursor):
|
||||||
text = []
|
text = []
|
||||||
cursor_data = readUnitFromBlockchain(cursor)
|
cursor_data = readUnitFromBlockchain(cursor)
|
||||||
text.append(cursor_data[:]) #TODO enter cursor values
|
text.append(cursor_data[69:])
|
||||||
while(cursor_data[:5]=='next:'):
|
while(cursor_data[:5]=='next:'):
|
||||||
cursor = cursor_data[:]
|
cursor = cursor_data[5:69]
|
||||||
cursor_data = readUnitFromBlockchain(cursor)
|
cursor_data = readUnitFromBlockchain(cursor)
|
||||||
text.append(cursor_data[:])
|
text.append(cursor_data[69:])
|
||||||
text.join('')
|
text.join('')
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user