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 de17043 commit 2ea2274
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions beacon/scripts/collusion_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def update_user_budget_to_initial(individual_id):
{"$set": {"budget": -math.log10(0.5)}},
return_document=ReturnDocument.AFTER # Return the updated document
)
print(updated_document)

return updated_document

Expand Down Expand Up @@ -165,8 +166,8 @@ def main():
user_count += 1
clear_budget_and_history_collections()
update_user_budget_to_initial(individual_id)
budget_info = client.beacon.get_collection('budget').find_one({"individualId": individual_id})
print("The budget is now QUERO VER ISTO: ", budget_info['budget'])
budget_info = client.beacon.get_collection('budget').find_one({"individualId": individual_id})['budget']
print("The budget is now QUERO VER ISTO: ", budget_info)
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("THE NUMBER OF USERS IS NOW:", user_count)
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
Expand Down

0 comments on commit 2ea2274

Please sign in to comment.