Skip to content

Commit b0867b4

Browse files
committed
commit to index
1 parent 25d3c94 commit b0867b4

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

__pycache__/app.cpython-311.pyc

192 Bytes
Binary file not shown.

__pycache__/settings.cpython-311.pyc

19 Bytes
Binary file not shown.
169 Bytes
Binary file not shown.

routes/index.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# routes/index.py
22
# route to templates page
3-
from flask import Flask, url_for, render_template
3+
from flask import (Flask, url_for,
4+
render_template, Blueprint,
5+
request, current_app)
46
from models.filter import Filter
57

68
# create and configure the blueprint
@@ -36,5 +38,5 @@ def search():
3638
#if repo['stargazers_count'] >= int(rating):
3739
filtered_repos.append(repo)
3840

39-
# Redirect back to the index page with search parameters as query parameters
41+
# Redirect to the result page with search parameters as query parameters
4042
return render_template('result.html', topic=topic, rating=rating, repositories = filtered_repos)

settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ class Config(object):
1010
# Enable debug mode.
1111
DEBUG = True
1212
# put your token here
13-
TOKEN = "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"
13+
TOKEN = "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"

wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
if __name__ == '__main__':
44
# DEBUG is set to TRUE. Change to FALSE for production
5-
app.run(host='localhost', port=3000)
5+
app.run(host='0.0.0.0', port=3000)

0 commit comments

Comments
 (0)