Skip to content

Commit

Permalink
change case
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrastopoulos committed Feb 7, 2025
1 parent 97f284d commit 68ba0ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,15 @@ def create_schedule_items():

def append_shirt_size_to_dietary_restrictions():
for document in helix_db["profiles"].find():
dietary_restrictions = document.get('dietary_restrictions', '')
shirt_size = document.get('shirt_size', '')
dietary_restrictions = document.get('dietaryRestrictions', '')
shirt_size = document.get('shirtSize', '')

if dietary_restrictions:
updated_dietary_restrictions = f"{dietary_restrictions}, {shirt_size}"
else:
updated_dietary_restrictions = shirt_size

print(updated_dietary_restrictions)
print(updated_dietary_restrictions)
# helix_db.update_one(
# {'_id': document['_id']},
# {'$set': {'dietary_restrictions': updated_dietary_restrictions}}
Expand Down

0 comments on commit 68ba0ed

Please sign in to comment.