show wrapper in November
This commit is contained in:
parent
1ab2fe85f0
commit
6e3e8ce472
6 changed files with 10 additions and 11 deletions
|
@ -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.
|
||||
|
||||
[](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
|
||||
|
||||
[](https://mastodon.social/@neodb)
|
||||
[](https://discord.gg/QBHkrV8bxK)
|
||||
[](https://discord.gg/QBHkrV8bxK)
|
||||
[](https://ko-fi.com/neodb)
|
||||
|
||||
## Features
|
||||
- Manage a shared catalog of books/movies/tv shows/music album/games/podcasts/performances
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue