Skip to content

Commit

Permalink
Update gsp.py (#384)
Browse files Browse the repository at this point in the history
* Update gsp.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pvprajwal and pre-commit-ci[bot] authored Jan 27, 2025
1 parent 607b2b7 commit 5e0be41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def get_all_available_forecasts(

if isinstance(gsp_ids, str):
gsp_ids = [int(gsp_id) for gsp_id in gsp_ids.split(",")]
if gsp_ids == "":
gsp_ids = None

if is_fake():
if gsp_ids is None:
Expand Down

0 comments on commit 5e0be41

Please sign in to comment.