X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dakweb%2Fqueries%2Fmadison.py;h=d27d4784864caa1fbf9b2696dfbf1bcbe6d93eba;hb=707f0c5652b550fefd53e55bc2cbd3d2b8ef088e;hp=469f9c80d304e10c0c2d7ef614d84e62572023cf;hpb=59d33fca226689f0b8972463bf25f148bf3d7a71;p=dak.git diff --git a/dakweb/queries/madison.py b/dakweb/queries/madison.py index 469f9c80..d27d4784 100644 --- a/dakweb/queries/madison.py +++ b/dakweb/queries/madison.py @@ -26,6 +26,10 @@ def madison(): # kwargs['regex'] = True result = list_packages(packages, **kwargs) - return "\n".join(result) + "\n" + + bottle.response.content_type = 'text/plain' + for row in result: + yield row + yield "\n" QueryRegister().register_path('/madison', madison)