rewrite in pyramid

This commit is contained in:
evilchili
2024-01-30 01:25:02 -08:00
parent 8f17ddfb05
commit 5faf5c97c1
7 changed files with 98 additions and 129 deletions
+10
View File
@@ -0,0 +1,10 @@
from pyramid.response import Response
from pyramid.view import view_config
from ttfrog.db.manager import db
from ttfrog.db.schema import Ancestry
@view_config(route_name='index')
def index(request):
ancestries = [a.name for a in db.session.query(Ancestry).all()]
return Response(','.join(ancestries))