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 fe45c58 commit 0e30166
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions beacon/scripts/collusion_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ def query_variant_with_curl(access_token, alt, ref, start, end, vType):


def update_user_budget_to_initial(individual_id):

try:
budget_collection = client.beacon['budget']

# Find the document and update it, returning the updated document
budget_collection.find_one_and_update(
{"individualId": individual_id},
{"$inc": {"budget": -(math.log10(0.5))}},
return_document=ReturnDocument.AFTER # Return the updated document
)
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!")
budget_info = client.beacon.get_collection('budget').find_one({"individualId": individual_id})

budget_info = client.beacon.get_collection('budget').find_one({"individualId": individual_id})['budget']
print("The budget is now: ", budget_info['budget'])
print("BLA BLA BLA")
print("THE BUDGET WAS UPDATED, SO 1 MORE USER")
Expand Down

0 comments on commit 0e30166

Please sign in to comment.