From e4965998ae0cd4815040187b8a141660dde9a128 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 21 May 2018 21:07:27 -0400 Subject: [PATCH] fix mistakes when special-casing --- feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feed.py b/feed.py index 7df4342..d8ca505 100755 --- a/feed.py +++ b/feed.py @@ -38,9 +38,9 @@ def parse_sessions(feed, sessions): if "-Orig" in argument_number: # magic docket number for now, see https://www.cocklelegalbriefs.com/blog/supreme-court/the-u-s-supreme-courts-use-of-docket-numbers/ docket_number = "22o" + argument_number.split("-")[0] - else if "-Question-" in argument_number: + elif "-Question-" in argument_number: # special case for two-part Obergefell v. Hodges argument - docket_number = argument_number.split("-")[0] + docket_number = "-".join(argument_number.split("-")[0:2]) else: docket_number = argument_number