From a2e47b98f5b436972fe78c20c8661b306c46e428 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Tue, 8 Oct 2019 22:50:13 +0100 Subject: [PATCH] fixes -- in dates and the lack of the preshow --- docker-compose.jsonnet | 2 +- sheetsync/sheetsync/main.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.jsonnet b/docker-compose.jsonnet index b4d7b97..d671177 100644 --- a/docker-compose.jsonnet +++ b/docker-compose.jsonnet @@ -97,7 +97,7 @@ // The spreadsheet id and worksheet names for sheet sync to act on sheet_id:: "your_id_here", - worksheets:: ["Day %d" % n for n in std.range(1, 7)], + worksheets:: ["Tech Test & Preshow"] + ["Day %d" % n for n in std.range(1, 7)], // Now for the actual docker-compose config diff --git a/sheetsync/sheetsync/main.py b/sheetsync/sheetsync/main.py index 9c7eb84..d6369d5 100644 --- a/sheetsync/sheetsync/main.py +++ b/sheetsync/sheetsync/main.py @@ -84,6 +84,8 @@ class SheetSync(object): def parse_bustime(self, value): """Convert from HH:MM or HH:MM:SS format to datetime""" + if value.strip() == '--': + return None bustime = common.parse_bustime(value) return common.bustime_to_dt(self.bustime_start, bustime)