Skip to content

Commit 265fe17

Browse files
authored
Merge pull request #17 from Project-Ticketaka/feature/operation
Fix: prf_ticket_price Null check
2 parents c3dfabb + d4cb5c3 commit 265fe17

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

prf_api_caller.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ def get_performance(self, prf_id):
3535
xmlobj = BeautifulSoup(response, 'lxml-xml').find("db")
3636

3737
dtguidance = xmlobj.find("dtguidance").string
38-
if dtguidance == ' ' or dtguidance == ' ':
38+
if dtguidance == ' ' or dtguidance == '':
39+
return None
40+
41+
prf_ticket_price = xmlobj.find("pcseguidance").string
42+
if prf_ticket_price == ' ' or prf_ticket_price == '':
3943
return None
4044

4145
data = {}

0 commit comments

Comments
 (0)