housekeep: reformat files with pre-hooks

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2024-08-03 08:15:56 +01:00
parent 4d5909256f
commit a54b6935a1
No known key found for this signature in database
GPG key ID: 244740D17C7FD0EC
4 changed files with 55 additions and 54 deletions

View file

@ -81,7 +81,9 @@ async def rss_modified(request: Request):
# we use redis for caching the results of the feedgen
cache_expire = config.getint("cache", "expiry_time_rss", 300)
feed = lambda_cache("rss_modified", lambda: make_rss_feed(request, packages), cache_expire)
feed = lambda_cache(
"rss_modified", lambda: make_rss_feed(request, packages), cache_expire
)
response = Response(feed, media_type="application/rss+xml")
return response