Skip to content

Commit

Permalink
collusion test
Browse files Browse the repository at this point in the history
  • Loading branch information
sara-santana committed Nov 29, 2024
1 parent 808580e commit 1906716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beacon/scripts/collusion_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def main():
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print(f"The individual {individual_id} was removed in variant number {var_count}")
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("THE BUDGET OF THE INDIVIDUAL IS: ", client.beacon.get_collection('budget').find_one({"individualId": individual_id})['budget'])
total_risk -= (current_budget - client.beacon.get_collection('budget').find_one({"individualId": individual_id})['budget'])
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("The total risk is now: ", total_risk)
Expand All @@ -162,6 +163,9 @@ def main():
user_count += 1
clear_budget_and_history_collections()
update_user_budget_to_initial(individual_id)
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("THE NUMBER OF USERS IS NOW:", user_count)
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
if stderr:
print("Error:", stderr)

Expand Down

0 comments on commit 1906716

Please sign in to comment.