Comments (3)
I agree! I'm open to pull requests if anyone knows flask and wants to fix it.
from are-you-fake-news.
relevant: https://github.com/N2ITN/newscraper/blob/be968db3246e43959c01a6e6b048d92fecaaa61e/web/app.py#L54
Not sure if it's as simple as changing to if request.method in ['POST', 'GET']:
will have to check in free time
from are-you-fake-news.
I don't have a chance to try it at this moment, but while we're brainstorming:
It might just be a matter of defining a new function for the main function def hello()
to call using a dynamically generated app route, instead of returning the template in its own scope:
Something like:
@app.route(f"/results_{name_clean}", methods=['GET', 'POST'])
def user_results(val,pol,fact):
return render template('index.html', value=val, pol=pol, fact=fact)
(where name_clean
is the top level domain of the url with no punctuation)
from are-you-fake-news.
Related Issues (3)
- /heatmap not linked HOT 1
- \data probably should be removed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from are-you-fake-news.