Skip to content

Commit

Permalink
fix: integer check
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinZhu committed Nov 11, 2020
1 parent 2e8a934 commit 5e86553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def parse_min_year(eligible_year):
"""
if not eligible_year:
return -1
if eligible_year[0].isdigit:
if eligible_year[0].isdigit():
return int(eligible_year[0])
return -1

Expand Down Expand Up @@ -245,7 +245,7 @@ def parse_period(schedule):


def parse_credit(credit):
if credit.isdigit:
if credit.isdigit():
return int(credit)
return -1

Expand Down

0 comments on commit 5e86553

Please sign in to comment.