This commit is contained in:
+1
-6
@@ -57,9 +57,4 @@ async def list_repos():
|
||||
async def get_repo_status(repo_id: int):
|
||||
import os
|
||||
# Prüfe ob Ordner existiert
|
||||
return {"subscribed": os.path.exists(f"/projects/repo-{repo_id}")}
|
||||
```[1]
|
||||
|
||||
Für Datei-Änderungen brauchst du a `watchdog` Observer, der Änderungs-Hashes speichert [1].
|
||||
|
||||
Möchtest du die Implementierung direkt erledigen lassen?
|
||||
return {"subscribed": os.path.exists(f"/projects/repo-{repo_id}")}
|
||||
Reference in New Issue
Block a user