Skip to content

Commit

Permalink
Refactored eval
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzZ1 committed Nov 14, 2023
1 parent 6a86657 commit f33cc00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ def main():
)
args = parser.parse_args()
if args.scpe_issues:
scpe_issues_to_scrape = eval(args.scpe_issues)
scpe_issues_to_scrape = [int(issue) for issue in args.scpe_issues.split(",")]
else:
scpe_issues_to_scrape = [issue for issue in range(1, 201)]

if args.csis_volumes:
csis_volumes_to_scrape = eval(args.csis_volumes)
csis_volumes_to_scrape = [
int(volume) for volume in args.csis_volumes.split(",")
]
else:
csis_volumes_to_scrape = [volume for volume in range(2, 39)]

Expand Down

0 comments on commit f33cc00

Please sign in to comment.