show wrapper in November

This commit is contained in:
Your Name 2024-11-27 20:31:14 -05:00 committed by Henri Dickson
parent 1ab2fe85f0
commit 6e3e8ce472
6 changed files with 10 additions and 11 deletions

View file

@ -11,12 +11,11 @@ _mark the things you love._
[NeoDB.social](https://neodb.social) and [NiceDB](https://nicedb.org) are free instances hosted by volunteers. Your support is essential to keep these services free and open-sourced.
[![Kofi](https://img.shields.io/badge/Ko--Fi-Donate-orange?label=Support%20this%20project%20on%20Ko-fi&style=for-the-badge&color=ff5f5f&logo=ko-fi)](https://ko-fi.com/neodb)
Follow us on [Fediverse](https://mastodon.social/@neodb) or join our [Discord community](https://discord.gg/QBHkrV8bxK) to share your ideas/questions/creations
Follow us on [Fediverse](https://mastodon.online/@neodb), [Bluesky](https://bsky.app/profile/neodb.net) or join our [Discord community](https://discord.gg/QBHkrV8bxK) to share your ideas/questions/creations
[![Mastodon](https://img.shields.io/mastodon/follow/106919732872456302?style=for-the-badge&logo=mastodon&logoColor=fff&label=%40neodb%40mastodon.social&color=6D75D2)](https://mastodon.social/@neodb)
[![Discord](https://img.shields.io/discord/1041738638364528710?label=Discord%20Community&logo=discord&logoColor=fff&color=6D75D2&style=for-the-badge)](https://discord.gg/QBHkrV8bxK)
[![Discord](https://img.shields.io/discord/1041738638364528710?label=Discord&logo=discord&logoColor=fff&color=6D75D2&style=for-the-badge)](https://discord.gg/QBHkrV8bxK)
[![Kofi](https://img.shields.io/badge/Ko--Fi-Donate-orange?label=Support%20NeoDB%20on%20Ko-fi&style=for-the-badge&color=ff5f5f&logo=ko-fi)](https://ko-fi.com/neodb)
## Features
- Manage a shared catalog of books/movies/tv shows/music album/games/podcasts/performances

View file

@ -224,9 +224,9 @@ class Spotify:
if j.get("albums"):
for a in j["albums"]["items"]:
title = a["name"]
subtitle = a["release_date"]
for artist in a["artists"]:
subtitle += " " + artist["name"]
subtitle = a.get("release_date", "")
for artist in a.get("artists", []):
subtitle += " " + artist.get("name", "")
url = a["external_urls"]["spotify"]
cover = a["images"][0]["url"] if a.get("images") else None
results.append(

View file

@ -352,7 +352,7 @@ class Indexer:
f = []
if categories:
f.append(f"category:= [{','.join(categories)}]")
if tag:
if tag and tag != "_":
f.append(f"tags:= '{tag}'")
filters = " && ".join(f)
options = {

View file

@ -88,7 +88,7 @@ def profile(request: AuthedHttpRequest, user_name):
year = None
else:
today = datetime.date.today()
if today.month > 11:
if today.month >= 11:
year = today.year
elif today.month < 2:
year = today.year - 1

View file

@ -115,7 +115,7 @@ class WrappedShareView(LoginRequiredMixin, TemplateView):
def post(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse:
img = base64.b64decode(request.POST.get("img", ""))
comment = request.POST.get("comment", "")
visibility = VisibilityType(request.POST.get("visibility", 0))
visibility = VisibilityType(int(request.POST.get("visibility", 0)))
user: User = request.user # type: ignore
identity = user.identity
media = Takahe.upload_image(

@ -1 +1 @@
Subproject commit 168ad0a97c15e721dcf34176c962e76f315b6a74
Subproject commit 40109a21c68245bc6fc86ada0787a0f2696b45c3