Files
Brancheneinstufung2/scripts/list_projects.py
2026-01-31 07:28:44 +00:00

17 lines
385 B
Python

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()