Spaces:
Sleeping
Sleeping
CocoonAI
commited on
Commit
·
2b09e48
1
Parent(s):
0aa9390
update
Browse files- .obsidian/workspace.json +2 -1
- app.py +1 -1
.obsidian/workspace.json
CHANGED
|
@@ -160,9 +160,9 @@
|
|
| 160 |
},
|
| 161 |
"left-ribbon": {
|
| 162 |
"hiddenItems": {
|
| 163 |
-
"switcher:Open quick switcher": false,
|
| 164 |
"graph:Open graph view": false,
|
| 165 |
"canvas:Create new canvas": false,
|
|
|
|
| 166 |
"daily-notes:Open today's daily note": false,
|
| 167 |
"templates:Insert template": false,
|
| 168 |
"command-palette:Open command palette": false,
|
|
@@ -171,6 +171,7 @@
|
|
| 171 |
},
|
| 172 |
"active": "d3eb24a4563a65a9",
|
| 173 |
"lastOpenFiles": [
|
|
|
|
| 174 |
"profile_writer.py",
|
| 175 |
"Python profile_writer.py",
|
| 176 |
"app.py.sb-d9df406f-LoD4E6",
|
|
|
|
| 160 |
},
|
| 161 |
"left-ribbon": {
|
| 162 |
"hiddenItems": {
|
|
|
|
| 163 |
"graph:Open graph view": false,
|
| 164 |
"canvas:Create new canvas": false,
|
| 165 |
+
"switcher:Open quick switcher": false,
|
| 166 |
"daily-notes:Open today's daily note": false,
|
| 167 |
"templates:Insert template": false,
|
| 168 |
"command-palette:Open command palette": false,
|
|
|
|
| 171 |
},
|
| 172 |
"active": "d3eb24a4563a65a9",
|
| 173 |
"lastOpenFiles": [
|
| 174 |
+
"vault/test.md",
|
| 175 |
"profile_writer.py",
|
| 176 |
"Python profile_writer.py",
|
| 177 |
"app.py.sb-d9df406f-LoD4E6",
|
app.py
CHANGED
|
@@ -34,7 +34,7 @@ app = FastAPI()
|
|
| 34 |
|
| 35 |
# === Utils ===
|
| 36 |
def get_user_vault_path(user_id: str) -> str:
|
| 37 |
-
base_path = "vaults"
|
| 38 |
user_path = os.path.join(base_path, f"user_{user_id}")
|
| 39 |
os.makedirs(user_path, exist_ok=True)
|
| 40 |
return user_path
|
|
|
|
| 34 |
|
| 35 |
# === Utils ===
|
| 36 |
def get_user_vault_path(user_id: str) -> str:
|
| 37 |
+
base_path = os.path.join(tempfile.gettempdir(), "vaults")
|
| 38 |
user_path = os.path.join(base_path, f"user_{user_id}")
|
| 39 |
os.makedirs(user_path, exist_ok=True)
|
| 40 |
return user_path
|