Skip to content

Commit

Permalink
fix inbox and jump back to latest Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
tnix100 authored Nov 16, 2024
1 parent a8ea52d commit 2da0e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-alpine
FROM python:3-alpine
WORKDIR /app
COPY . .
RUN apk add --no-cache bash make build-base
Expand Down
2 changes: 1 addition & 1 deletion rest_api/v0/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def get_inbox_posts(query_args: GetInboxQueryArgs):
abort(401)

# Get and return posts
query = {"u": {"$or": [request.user, "Server"]}, "post_origin": "inbox", "isDeleted": False}
query = {"$or": [{"u": request.user}, {"u": "Server"}], "post_origin": "inbox", "isDeleted": False}
return {
"error": False,
"autoget": app.supporter.parse_posts_v0(db.posts.find(
Expand Down

0 comments on commit 2da0e3e

Please sign in to comment.