Skip to content

Commit

Permalink
Merge pull request #92 from CalPolyDnD/final
Browse files Browse the repository at this point in the history
Final
  • Loading branch information
gdaswegan committed Jun 4, 2019
2 parents f9303b4 + 01c3fe6 commit 695eb0c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
Binary file added Documents/Sprint9Issues.pdf
Binary file not shown.
Binary file added Documents/Sprint9Report.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion dmsite/backend/dmsite/db_manager/db_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from decimal import Decimal
import pandas as pd


dynamo_client = boto3.client('dynamodb', region_name='us-east-1', endpoint_url="http://dynamodb.us-east-1.amazonaws.com")
dynamodb = boto3.resource('dynamodb', region_name='us-east-1', endpoint_url="http://dynamodb.us-east-1.amazonaws.com")
ERR_STR = "There was an error trying to access the AWS database. See 'errorStr' for details."
Expand Down
3 changes: 1 addition & 2 deletions dmsite/backend/dmsite/post_requests/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ def find_files(data):

@csrf_exempt
def download_file(request):
print('top of download_file')
if request.method == 'POST':
try:
requestBody = json.loads(str(request.body, encoding='utf8'))
data = db.scan('classifications', 'campaign', request['campaign_name'])
data = db.scan('classifications', 'campaign', requestBody['campaign_name'])
if 'Items' not in data:
return JsonResponse({"error": data['errorStr']}, status=400)
formattedResponse = formatClassificationJson(data['Items'])
Expand Down
2 changes: 1 addition & 1 deletion dmsite/frontend/src/Authentication/NewAccountTextField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class NewAccountTextField extends React.Component {
compareToFirstPassword = (rule, value, callback) => {
const { form } = this.props;
if (value && value !== form.getFieldValue('password')) {
callback('The two passwords you entered are inconsistent');
callback('The two passwords you entered don\'t match!');
} else {
callback();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ClassificationTable extends React.Component {
columnStr += columns[columns.length - 1];

return (
<p style={{ margin: '5px', paddingLeft: '30px', color: '#898989' }}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#d6d7d8' }}>
Column: {columnStr}
</p>
);
Expand All @@ -48,7 +48,7 @@ class ClassificationTable extends React.Component {
renderClassificationExamples(examples) {
return examples.map(example => (
<div style={{ height: '100%', justifyContent: 'center', alignItems: 'center'}}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#898989' }}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#d6d7d8' }}>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{`${example}`}
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Unknown extends React.Component {
renderExamples(classification) {
return classification.examples.map(example => (
<div style={{ height: '100%', justifyContent: 'center', alignItems: 'center'}}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#898989' }}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#d6d7d8' }}>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{`${example}`}
</p>
</div>
Expand Down Expand Up @@ -78,7 +78,7 @@ class Unknown extends React.Component {
isOpen={cell === index}
style={{backgroundColor: '#3d3d3d' }}
>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#898989' }}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#d6d7d8' }}>
Examples:
</p>
{this.renderExamples(classification)}
Expand Down
4 changes: 2 additions & 2 deletions dmsite/frontend/src/EditClassifications/EditPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class EditClassifications extends React.Component {
renderExamples(classification) {
return classification.examples.map(example => (
<div style={{ height: '100%', justifyContent: 'center', alignItems: 'center'}}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#898989' }}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#d6d7d8' }}>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{`${example}`}
</p>
</div>
Expand All @@ -84,7 +84,7 @@ class EditClassifications extends React.Component {
isOpen={cell === index}
style={{backgroundColor: '#3d3d3d' }}
>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#898989' }}>
<p style={{ margin: '5px', paddingLeft: '30px', color: '#d6d7d8' }}>
Examples:
</p>
{this.renderExamples(classification)}
Expand Down

0 comments on commit 695eb0c

Please sign in to comment.