roundabout,
created on Tuesday, 10 September 2024, 13:26:55 (1725974815),
received on Tuesday, 10 September 2024, 13:58:09 (1725976689)
Author identity: vlad <vlad.muntoiu@gmail.com>
b93a9fe2c9d64a905cac7aa9ad65682f6002b314
app.py
@@ -1033,7 +1033,8 @@ def get_picture_query(query_data):
"before_date": lambda value: PictureResource.timestamp <= datetime.utcfromtimestamp( value), "after_date": lambda value: PictureResource.timestamp >= datetime.utcfromtimestamp( value)value), "in_gallery": lambda value: PictureResource.galleries.any(PictureInGallery.gallery_id.in_(value)),} if "want" in query_data: for i in query_data["want"]:
formats.md
@@ -103,6 +103,8 @@ key (this is to allow multiple rules of the same kind). Accepted rules are:
Unix timestamp. * `after_date: timestamp`: The image must have been uploaded after the given Unix timestamp. * `in_gallery: [gallery1, gallery2, ...]`: The image must be in any of the galleries (by ID) in the list.`ordering`, `offset` and `limit` can be specified as query parameters in the URL. `ordering` can be one of `date-desc`, `date-asc`, `title-asc`, `title-desc`,