From 1755da8fd738ed5d003d8dc4dbbe88b4aac4c347 Mon Sep 17 00:00:00 2001 From: Daniel Bernstein Date: Fri, 20 Dec 2024 10:54:21 -0800 Subject: [PATCH] Ensure that the playtime report stream is set to beginning of file before sending to s3. --- src/palace/manager/scripts/playtime_entries.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/palace/manager/scripts/playtime_entries.py b/src/palace/manager/scripts/playtime_entries.py index a9bff8ee6..7eecb29be 100644 --- a/src/palace/manager/scripts/playtime_entries.py +++ b/src/palace/manager/scripts/playtime_entries.py @@ -207,6 +207,9 @@ def do_run(self): records=self._fetch_report_records(start=start, until=until), ) + # Rewind report + temp.seek(0) + recipient = os.environ.get( Configuration.REPORTING_EMAIL_ENVIRONMENT_VARIABLE )