Skip to content

Commit

Permalink
Fix reports RSS, Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Apr 30, 2024
1 parent 5a95068 commit b7003f5
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 115 deletions.
4 changes: 2 additions & 2 deletions api/v1/photos.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import UTC, datetime, timedelta
from datetime import timedelta
from io import BytesIO
from typing import Annotated
from urllib.parse import unquote_plus
Expand Down Expand Up @@ -169,6 +169,6 @@ async def report_rss(request: Request):
type='CDATA',
)
fe.link(href=f'{request.base_url}api/v1/photos/view/{report.photo_id}.webp')
fe.published(datetime.fromtimestamp(report.timestamp, UTC))
fe.published(report.created_at)

return Response(content=fg.rss_str(pretty=True), media_type='application/rss+xml')
6 changes: 2 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{ pkgs ? import <nixpkgs> { }, ... }:
{ pkgs ? import <nixpkgs> { } }:

let
envTag = builtins.getEnv "TAG";

shell = import ./shell.nix {
isDevelopment = false;
};
shell = import ./shell.nix { isDevelopment = false; };

python-venv = pkgs.buildEnv {
name = "python-venv";
Expand Down
Loading

0 comments on commit b7003f5

Please sign in to comment.