Created
September 19, 2017 12:08
-
-
Save simform-solutions/c3e3f68bbc72c7a4b418c06fa9b3536a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Updates the f_index and l_index | |
def update_fal_balance(): | |
index_with_value = [] | |
for data in address_data: | |
if data["balance"] > 0: | |
index = data["index"] | |
index_with_value.append(index) | |
if len(index_with_value) > 0: | |
f_index = min(index_with_value) | |
l_index = max(index_with_value) | |
write_fal_balance(f_index, l_index) | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment