前后端更新
This commit is contained in:
1 parent
a0c8721fbb
commit
24da604727
33 files changed
+1951
-580
No files matched your search
@@ -0,0 +1,15 @@
|
||||
from app import create_app, db
|
||||
from app.models import Agent, User
|
||||
|
||||
app = create_app('development')
|
||||
|
||||
with app.app_context():
|
||||
agents = Agent.query.all()
|
||||
print("--- Agents ---")
|
||||
for a in agents:
|
||||
print(f"ID: {a.id}, Name: {a.name}, Key: {a.dify_api_key}, URL: {a.api_base_url}")
|
||||
|
||||
users = User.query.all()
|
||||
print("\n--- Users ---")
|
||||
for u in users:
|
||||
print(f"ID: {u.id}, Username: {u.username}, Role: {u.role}")
|
||||
Reference in new issue
Block a user