my eye

Add limit to get_posts()

Committed ffa562

--- a/webint_posts/__init__.py
+++ b/webint_posts/__init__.py

 
 
 @app.query
-def get_posts(db, after=None, before=None, categories=None):
+def get_posts(db, after=None, before=None, categories=None, limit=None):
     """."""
     froms = ["resources"]
     wheres = ""
         where=wheres,
         vals=vals,
         order="""json_extract(resources.resource, '$.published[0]') DESC""",
+        limit=limit,
     ):
         r = post["resource"]
         if (