Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb0867b4

Browse files
committed
commit to index
1 parent25d3c94 commitb0867b4

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-
fromflaskimportFlask,url_for,render_template
3+
fromflaskimport (Flask,url_for,
4+
render_template,Blueprint,
5+
request,current_app)
46
frommodels.filterimportFilter
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-
# Redirectbackto theindex page with search parameters as query parameters
41+
# Redirect to theresult page with search parameters as query parameters
4042
returnrender_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)

[8]ページ先頭

©2009-2025 Movatter.jp