Skip to content

Commit

Permalink
Merge pull request #77 from AustralianSynchrotron/limitless-solution
Browse files Browse the repository at this point in the history
LF Limitless solution
  • Loading branch information
luigiferiani authored Sep 30, 2024
2 parents ad7cc30 + f9b93d6 commit 7ec71fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"forwardPorts": [8000, 5432],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "uv sync && uv run fastapi dev ./openday_scavenger/main.py --reload",
"postCreateCommand": "uv sync --all-extras && uv run fastapi dev ./openday_scavenger/main.py --reload",

// Configure tool-specific properties.
"customizations": {
Expand All @@ -21,7 +21,7 @@
"ms-python.python",
"ms-python.vscode-pylance"
],
"settings": {
"settings": {
"python.defaultInterpreterPath": "/root/.cache/uv/bin/python"
}
}
Expand Down
6 changes: 3 additions & 3 deletions openday_scavenger/api/puzzles/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime
from typing import List

from sqlalchemy import ForeignKey, String
from sqlalchemy import ForeignKey, String, Text
from sqlalchemy.orm import Mapped, mapped_column, relationship

from openday_scavenger.api.db import Base
Expand All @@ -13,7 +13,7 @@ class Puzzle(Base):
__tablename__ = "puzzle"
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
name: Mapped[str] = mapped_column(index=True, unique=True)
answer: Mapped[str] = mapped_column(String(100))
answer: Mapped[str] = mapped_column(Text)
active: Mapped[bool] = mapped_column(default=False)
location: Mapped[str] = mapped_column(String(200), nullable=True)
notes: Mapped[str] = mapped_column(nullable=True)
Expand All @@ -32,7 +32,7 @@ class Response(Base):
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
visitor_id: Mapped[int] = mapped_column(ForeignKey("visitor.id"))
puzzle_id: Mapped[int] = mapped_column(ForeignKey("puzzle.id"))
answer: Mapped[str] = mapped_column(String(100))
answer: Mapped[str] = mapped_column(Text)
is_correct: Mapped[bool] = mapped_column(default=False)
created_at: Mapped[datetime] = mapped_column()

Expand Down

0 comments on commit 7ec71fa

Please sign in to comment.