Skip to content

Commit

Permalink
applicable data period fix (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc authored Nov 15, 2024
1 parent cc5cbab commit 1eb5210
Show file tree
Hide file tree
Showing 4 changed files with 253 additions and 186 deletions.
2 changes: 1 addition & 1 deletion apcd-cms/src/apps/admin_extension/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def put(self, request, ext_id):
updated_data['extension_id'] = ext_id
updated_data['status'] = data['ext_status']
updated_data['outcome'] = data['ext_outcome']
updated_data['approved-expiration-date'] = data['approved_expiration_date']
updated_data['approved_expiration_date'] = data['approved_expiration_date']
updated_data['applicable_data_period'] = data['applicable_data_period']
updated_data['notes'] = data['notes']

Expand Down
4 changes: 2 additions & 2 deletions apcd-cms/src/apps/utils/apcd_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,10 @@ def update_extension(form):
set_values = []
# to set column names for query to the correct DB name
columns = {
'applicable-data-period': 'applicable_data_period',
'applicable_data_period': 'applicable_data_period',
'status': 'status',
'outcome': 'outcome',
'approved-expiration-date': 'approved_expiration_date'
'approved_expiration_date': 'approved_expiration_date'
}
# To make sure fields are not blank.
# If they aren't, add column to update set operation
Expand Down
Loading

0 comments on commit 1eb5210

Please sign in to comment.