Skip to content

Commit

Permalink
The one with simultaneous Group and Meal prefs PR #219
Browse files Browse the repository at this point in the history
  • Loading branch information
bardsley authored Oct 31, 2024
2 parents 5b31570 + 2c99777 commit eb034d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/customer_preferences/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ def post(event):
UpdateExp += ", schedule = :val2"
ExpAttrVals[':val2'] = json.dumps(data['schedule'])
if ('group' in data) & (data['group']['id'] != ''):
group_name = data['group']['id']
logger.info(f"-SET GROUP OPTIONS:, {data['group']}")
recs = data['group']['recommendations'] if 'recommendations' in data['group'] else None
update_group(ticket_number, email, data['group']['id'], ticket_entry['full_name'], ticket_number, email, ticket_entry['meal_preferences']['seating_preference'], ticket_entry['full_name'], recs)
update_group(ticket_number, email, data['group']['id'], ticket_entry['full_name'], ticket_number, email, group_name, ticket_entry['full_name'], recs)

# define the params for the ddb update
params = {
Expand Down

0 comments on commit eb034d7

Please sign in to comment.