Add Task Manager scripts (Moltbot port)
This commit is contained in:
16
scripts/list_projects.py
Normal file
16
scripts/list_projects.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import clawd_notion as notion
|
||||
import json
|
||||
|
||||
def main():
|
||||
db_id = notion.find_db("Projects [UT]")
|
||||
if not db_id:
|
||||
print("Projects DB not found.")
|
||||
return
|
||||
|
||||
projects = notion.query_db(db_id)
|
||||
print("Verfügbare Projekte:")
|
||||
for i, p in enumerate(projects):
|
||||
print(f"{i+1}. {notion.get_title(p)} (ID: {p['id']})")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user