Skip to content

Commit 963cd9f

Browse files
Response from review
1 parent 576e4f2 commit 963cd9f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ COPY --from=build /venv/ /venv/
2828
COPY tests/test_data/beamline_parameters.txt tests/test_data/beamline_parameters.txt
2929
ENV PATH=/venv/bin:$PATH
3030
ARG BEAMLINE="dev"
31-
ENV BEAMLINE=${RUN_APP_IN_DEV_MODE}
31+
ENV BEAMLINE=${BEAMLINE}
3232

3333
# change this entrypoint if it is not the same as the repo
3434
CMD daq-config-server

deployment/build_and_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ echo "========================================="
5757
echo " "
5858
echo "Building ${MAIN_CONTAINER_NAME}"
5959
echo " "
60-
podman build --build-arg RUN_APP_IN_DEV_MODE=$MAIN_APP_DEV_MODE -t $MAIN_CONTAINER_NAME .
60+
podman build --build-arg -t $MAIN_CONTAINER_NAME .
6161
if [ $PUSH -gt 0 ]; then
6262
podman tag $MAIN_CONTAINER_NAME $MAIN_CONTAINER_TAG
6363
podman push $MAIN_CONTAINER_NAME $MAIN_CONTAINER_TAG

src/daq_config_server/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_configuration(file_path: Path):
2828
https://github.com/DiamondLightSource/daq-config-server/issues/67, this endpoint
2929
will convert commonly read files to a dictionary format
3030
"""
31-
if not file_path.exists():
31+
if not file_path.is_file():
3232
raise FileNotFoundError(f"File {file_path} cannot be found")
3333

3434
with file_path.open("r", encoding="utf-8") as f:

src/daq_config_server/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from logging import Logger, getLogger
2-
from typing import TypeVar
2+
from typing import Any, TypeVar
33

44
import requests
55

@@ -22,7 +22,7 @@ def _get(
2222
r = requests.get(self._url + endpoint + (f"/{item}" if item else ""))
2323
return r.json()
2424

25-
def read_unformatted_file(self, file_path: str) -> BlParamDType | None:
25+
def read_unformatted_file(self, file_path: str) -> Any:
2626
# After https://github.com/DiamondLightSource/daq-config-server/issues/67, we
2727
# can get specific formats, and then have better typing on
2828
# return values

0 commit comments

Comments
 (0)