电脑端-AI回复,可以在线预览excel/ppt/word/pdf格式
This commit is contained in:
1 parent
ef0ae7fe08
commit
2675f447bb
7 files changed
+218
-35
No files matched your search
@@ -1478,6 +1478,13 @@ def get_agent_details(id):
|
||||
'suggested_questions': agent.extra_config.get('suggested_questions', []) if agent.extra_config else []
|
||||
})
|
||||
|
||||
@user_bp.route('/db', methods=['GET'])
|
||||
def get_db():
|
||||
from app.models import User
|
||||
from app import db
|
||||
u = db.session.query(User).filter_by(username='26040006').first()
|
||||
return jsonify({'db': current_app.config.get('SQLALCHEMY_DATABASE_URI'), 'user': u.username if u else None})
|
||||
|
||||
@user_bp.route('/announcements', methods=['GET'])
|
||||
def get_announcements():
|
||||
"""
|
||||
@@ -1492,7 +1499,8 @@ def get_announcements():
|
||||
'created_at': a.created_at.isoformat()
|
||||
} for a in anns])
|
||||
except Exception as e:
|
||||
return jsonify({'error': str(e)}), 500
|
||||
import traceback
|
||||
return jsonify({'error': str(e), 'traceback': traceback.format_exc()}), 500
|
||||
|
||||
@user_bp.route('/announcements', methods=['POST'])
|
||||
def create_announcement():
|
||||
|
||||
Reference in new issue
Block a user