17 lines
385 B
Python
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()
|