From c89d03f9cfeb6593f0060847b50a1da6d6397405 Mon Sep 17 00:00:00 2001 From: Max Rumpf Date: Sun, 1 Dec 2024 03:02:53 +0100 Subject: [PATCH] Add back `inserted_at` field to export --- listenbrainz/background/export.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/listenbrainz/background/export.py b/listenbrainz/background/export.py index 9e04923e74..b4b1e07be2 100644 --- a/listenbrainz/background/export.py +++ b/listenbrainz/background/export.py @@ -80,6 +80,8 @@ def export_listens_for_time_range(ts_conn, file_path, user_id: int, start_time: SELECT jsonb_build_object( 'listened_at' , extract(epoch from listened_at) + , 'inserted_at' + , extract(epoch from inserted_at) , 'track_metadata' , jsonb_set(data, '{recording_msid}'::text[], to_jsonb(recording_msid::text)) )::text as line