Skip to content

Added web interface for data.json input of challenges and apis - #8

Merged
rjchee merged 9 commits into
masterfrom
admin_app
Oct 28, 2017
Merged

Added web interface for data.json input of challenges and apis#8
rjchee merged 9 commits into
masterfrom
admin_app

Conversation

@theCreedo

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread app/admin_app.py
elif val == 'challenges':
return challenges(request)
else:
return render_template('form.html')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this indentation so weird

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see that in my code... rip. I'll reindent

Comment thread app/data.json Outdated
"chip_keywords": [
"REST",
"banking",
"REST",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these extra spaces

Comment thread app/admin_app.py Outdated
'image': request.form.get('image'),
'description': request.form.get('description'),
'link': request.form.get('link'),
'keywords': request.form.get('search_keywords').split(','),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[keyword.strip() for keyword in request.form.get('search_keywords').split(',')] so we can do split on comma-space as well as comma

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do

Comment thread app/admin_app.py Outdated
'name':request.form.get('company_name'),
'image': request.form.get('image'),
'link': request.form.get('link'),
'keywords': request.form.get('search_keywords').split(','),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here and for the chip keywords

@rjchee rjchee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost good

@rjchee
rjchee merged commit 916ffb3 into master Oct 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants