ticket #67 attempt 1
This commit is contained in:
parent
818568c609
commit
6fc0114f40
1
.venv/bin/python
Symbolic link
1
.venv/bin/python
Symbolic link
@ -0,0 +1 @@
|
||||
python3
|
||||
1
.venv/bin/python3
Symbolic link
1
.venv/bin/python3
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/python3
|
||||
1
.venv/bin/python3.11
Symbolic link
1
.venv/bin/python3.11
Symbolic link
@ -0,0 +1 @@
|
||||
python3
|
||||
1
.venv/lib64
Symbolic link
1
.venv/lib64
Symbolic link
@ -0,0 +1 @@
|
||||
lib
|
||||
5
.venv/pyvenv.cfg
Normal file
5
.venv/pyvenv.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
home = /usr/bin
|
||||
include-system-site-packages = false
|
||||
version = 3.11.2
|
||||
executable = /usr/bin/python3.11
|
||||
command = /usr/bin/python3 -m venv /workspace/repo/.venv
|
||||
@ -468,6 +468,7 @@ def delete_node(project_uid: str, raw_path: str, deleted_by: str = "system") ->
|
||||
{"uid": row["uid"], "deleted_at": stamp, "deleted_by": deleted_by},
|
||||
["uid"],
|
||||
)
|
||||
_unlink_blob(row)
|
||||
|
||||
|
||||
def soft_delete_all_project_files(project_uid: str, deleted_by: str) -> None:
|
||||
@ -578,9 +579,15 @@ def _export_node(row: dict, dest: Path) -> None:
|
||||
if target.is_symlink():
|
||||
target.unlink()
|
||||
if row.get("is_binary") and row.get("stored_name") and row.get("directory"):
|
||||
shutil.copyfile(
|
||||
PROJECT_FILES_DIR / row["directory"] / row["stored_name"], target
|
||||
)
|
||||
source = PROJECT_FILES_DIR / row["directory"] / row["stored_name"]
|
||||
try:
|
||||
shutil.copyfile(source, target)
|
||||
except (FileNotFoundError, OSError) as exc:
|
||||
logger.warning(
|
||||
"Missing blob for node %s (%s): %s",
|
||||
row.get("uid"), row.get("path"), exc,
|
||||
)
|
||||
return
|
||||
else:
|
||||
target.write_text(row.get("content") or "", encoding="utf-8")
|
||||
|
||||
@ -708,9 +715,15 @@ def export_to_dir(project_uid: str, subpath: str, dest_dir) -> int:
|
||||
if target.is_symlink() or target.is_file():
|
||||
target.unlink()
|
||||
if row.get("is_binary") and row.get("stored_name") and row.get("directory"):
|
||||
shutil.copyfile(
|
||||
PROJECT_FILES_DIR / row["directory"] / row["stored_name"], target
|
||||
)
|
||||
source = PROJECT_FILES_DIR / row["directory"] / row["stored_name"]
|
||||
try:
|
||||
shutil.copyfile(source, target)
|
||||
except (FileNotFoundError, OSError) as exc:
|
||||
logger.warning(
|
||||
"Missing blob during full export for node %s (%s): %s",
|
||||
row.get("uid"), row.get("path"), exc,
|
||||
)
|
||||
continue
|
||||
else:
|
||||
target.write_text(row.get("content") or "", encoding="utf-8")
|
||||
written += 1
|
||||
|
||||
8
dpc.log
Normal file
8
dpc.log
Normal file
@ -0,0 +1,8 @@
|
||||
2026-07-19T17:36:20 INFO logging initialised at /workspace/repo/dpc.log
|
||||
2026-07-19T17:36:20 DEBUG model=molodetz-pro fps=30
|
||||
2026-07-19T17:36:20 INFO read task from file: /workspace/prompts/research-5.txt
|
||||
2026-07-19T17:36:20 INFO settings merged: model=<default> allow=0 deny=0 ask=0
|
||||
2026-07-19T18:22:05 INFO logging initialised at /workspace/repo/dpc.log
|
||||
2026-07-19T18:22:05 DEBUG model=molodetz-pro fps=30
|
||||
2026-07-19T18:22:05 INFO read task from file: /workspace/prompts/execution-1.txt
|
||||
2026-07-19T18:22:05 INFO settings merged: model=<default> allow=0 deny=0 ask=0
|
||||
Loading…
Reference in New Issue
Block a user