Skip to content

Instantly share code, notes, and snippets.

@simform-solutions
Created September 19, 2017 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simform-solutions/c3e3f68bbc72c7a4b418c06fa9b3536a to your computer and use it in GitHub Desktop.
Save simform-solutions/c3e3f68bbc72c7a4b418c06fa9b3536a to your computer and use it in GitHub Desktop.
# 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