Skip to content

Commit

Permalink
Use tb primary key (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixzhuologist authored and noahpresler committed Aug 5, 2017
1 parent def681d commit bdf8cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions courses/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def get_textbooks(self, course):
unique_textbooks = []
seen_textbooks = set()
for tb in all_textbooks:
if tb['id'] not in seen_textbooks:
if tb['isbn'] not in seen_textbooks:
unique_textbooks.append(tb)
seen_textbooks.add(tb['id'])
seen_textbooks.add(tb['isbn'])
return unique_textbooks

def get_regexed_courses(self, course):
Expand Down
2 changes: 1 addition & 1 deletion static/js/redux/ui/modals/textbook_modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class TextbookModal extends React.Component {
id="aws-cart-form" method="GET"
action="https://www.amazon.com/gp/aws/cart/add.html" target="_blank"
>
<input type="hidden" name="AWSAccessKeyId" value="***REMOVED***" />
<input type="hidden" name="AWSAccessKeyId" value="AKIAJGUOXN3COOYBPTHQ" />
<input type="hidden" name="AssociateTag" value="semesterly-20" />
<div className="tb-list-container">
{textbookList}
Expand Down

0 comments on commit bdf8cc4

Please sign in to comment.