mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Remove unused API methods
This commit is contained in:
parent
7a961b9fc5
commit
c16ba027ec
1 changed files with 0 additions and 20 deletions
20
server.py
20
server.py
|
|
@ -6,26 +6,6 @@ import json
|
||||||
def index():
|
def index():
|
||||||
return bottle.template('index')
|
return bottle.template('index')
|
||||||
|
|
||||||
# @bottle.get("/locations/<article_id:int>")
|
|
||||||
# def location(article_id):
|
|
||||||
# return (Location
|
|
||||||
# .select()
|
|
||||||
# .where(Location.article == article_id)
|
|
||||||
# .order_by(Location.confidence.desc(), Location.id.asc())
|
|
||||||
# .dicts()
|
|
||||||
# .get())
|
|
||||||
|
|
||||||
# @bottle.get("/categories/<article_id:int>")
|
|
||||||
# def category(article_id):
|
|
||||||
# categories = (Category
|
|
||||||
# .select()
|
|
||||||
# .where(Category.article == article_id))
|
|
||||||
|
|
||||||
# return {
|
|
||||||
# "article": article_id,
|
|
||||||
# "categories": [c.name for c in categories]
|
|
||||||
# }
|
|
||||||
|
|
||||||
@bottle.get("/articles/")
|
@bottle.get("/articles/")
|
||||||
def articles():
|
def articles():
|
||||||
conn = sqlite3.connect('violence.db')
|
conn = sqlite3.connect('violence.db')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue