Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
FROM continuumio/miniconda3 AS build
COPY requirements.txt .

RUN conda init bash && \
. /opt/conda/etc/profile.d/conda.sh && \
conda create --name myenv python=3.9 && \
conda activate myenv && \
conda install -c https://conda.anaconda.org/conda-forge spot && \
pip install -r requirements.txt
RUN conda init bash && \
. /opt/conda/etc/profile.d/conda.sh && \
conda create --name myenv python=3.9 && \
conda activate myenv && \
conda install -c https://conda.anaconda.org/conda-forge spot && \
pip install -r requirements.txt
# && \
#conda pack -n myenv -o /tmp/myenv.tar.gz
# Install conda-pack:
Expand Down
6 changes: 3 additions & 3 deletions src/authroutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,21 @@ def _ensure_instructor_exercise_schema():
connection.execute(
text(
f"ALTER TABLE {INSTRUCTOR_EXERCISE_TABLE} "
"ADD COLUMN allow_multiple_submissions BOOLEAN DEFAULT 1"
"ADD COLUMN allow_multiple_submissions BOOLEAN DEFAULT TRUE"
)
)

if 'is_deleted' not in existing_columns:
connection.execute(
text(
f"ALTER TABLE {INSTRUCTOR_EXERCISE_TABLE} "
"ADD COLUMN is_deleted BOOLEAN DEFAULT 0"
"ADD COLUMN is_deleted BOOLEAN DEFAULT FALSE"
)
)
connection.execute(
text(
f"UPDATE {INSTRUCTOR_EXERCISE_TABLE} "
"SET is_deleted = 0 WHERE is_deleted IS NULL"
"SET is_deleted = FALSE WHERE is_deleted IS NULL"
)
)

Expand Down
2 changes: 1 addition & 1 deletion src/templates/version.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.4
1.9.5