Spaces:
Sleeping
Sleeping
update dockerfile
Browse files
codebookly/src/features/codes/components/CodeCard.tsx
CHANGED
|
@@ -37,7 +37,7 @@ function CodeCardImpl({
|
|
| 37 |
<input
|
| 38 |
type="checkbox"
|
| 39 |
readOnly
|
| 40 |
-
className="size-3.5 rounded border-border-ui
|
| 41 |
checked={selected}
|
| 42 |
onClick={(e) => onSelectionClick(e, index, code.code)}
|
| 43 |
aria-label={`Select code ${code.code}`}
|
|
|
|
| 37 |
<input
|
| 38 |
type="checkbox"
|
| 39 |
readOnly
|
| 40 |
+
className="appearance-none size-3.5 rounded-full border border-border-ui cursor-pointer checked:bg-[var(--primary)]"
|
| 41 |
checked={selected}
|
| 42 |
onClick={(e) => onSelectionClick(e, index, code.code)}
|
| 43 |
aria-label={`Select code ${code.code}`}
|
codebookly/src/services/apiClient.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import axios from "axios";
|
| 2 |
|
| 3 |
-
const API_BASE_URL = "
|
| 4 |
// const API_BASE_URL = import.meta.env.VITE_API_URL ?? "http://127.0.0.1:8000";
|
| 5 |
|
| 6 |
export const apiClient = axios.create({
|
|
|
|
| 1 |
import axios from "axios";
|
| 2 |
|
| 3 |
+
const API_BASE_URL = "http://127.0.0.1:8000";
|
| 4 |
// const API_BASE_URL = import.meta.env.VITE_API_URL ?? "http://127.0.0.1:8000";
|
| 5 |
|
| 6 |
export const apiClient = axios.create({
|
src/app/app.py
CHANGED
|
@@ -13,9 +13,10 @@ import os
|
|
| 13 |
log = logging.getLogger(__name__)
|
| 14 |
|
| 15 |
DATABASE_URL = os.getenv("DATABASE_URL")
|
|
|
|
| 16 |
|
| 17 |
-
if DATABASE_URL and DATABASE_URL.startswith("postgres://"):
|
| 18 |
-
|
| 19 |
|
| 20 |
if not DATABASE_URL:
|
| 21 |
log.warning("DATABASE_URL not found. Database features will be unavailable.")
|
|
|
|
| 13 |
log = logging.getLogger(__name__)
|
| 14 |
|
| 15 |
DATABASE_URL = os.getenv("DATABASE_URL")
|
| 16 |
+
# DATABASE_URL = "sqlite+aiosqlite:///./codebookly_testing.db"
|
| 17 |
|
| 18 |
+
# if DATABASE_URL and DATABASE_URL.startswith("postgres://"):
|
| 19 |
+
# DATABASE_URL = DATABASE_URL.replace("postgres://", "postgresql+asyncpg://", 1)
|
| 20 |
|
| 21 |
if not DATABASE_URL:
|
| 22 |
log.warning("DATABASE_URL not found. Database features will be unavailable.")
|