Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-consultancy-account
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoening committed Nov 3, 2023
2 parents e8ecea8 + 420f241 commit 942b8f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion flexmeasures/api/v3_0/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ def get_schedule( # noqa: C901
return fallback_schedule_redirect(
message,
url_for(
"SensorAPI:get_schedule", uuid=fallback_job_id, id=sensor.id
"SensorAPI:get_schedule",
uuid=fallback_job_id,
id=sensor.id,
_external=True,
),
)
else:
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/api/v3_0/tests/test_sensor_schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def test_get_schedule_fallback(
# check that the redirection location points to the fallback job
assert (
get_schedule_response.headers["location"]
== f"/api/v3_0/sensors/{charging_station.id}/schedules/{fallback_job_id}"
== f"http://localhost/api/v3_0/sensors/{charging_station.id}/schedules/{fallback_job_id}"
)

# run the fallback job
Expand Down

0 comments on commit 942b8f7

Please sign in to comment.