Al1Abdullah commited on
Commit
89feb1e
·
verified ·
1 Parent(s): e5720ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -136,7 +136,7 @@ def generate_schema_summary(schema, db_name):
136
  has_indexes = bool(indexes)
137
  if has_foreign_keys and has_indexes:
138
  summary['suggestions']['evaluation'] = 'Excellent'
139
- summary['suggestions']['note'] = 'The schema is well-structured with defined foreign keys and indexes, supporting efficient queries.'
140
  elif has_foreign_keys:
141
  summary['suggestions']['evaluation'] = 'Good'
142
  summary['suggestions']['note'] = 'The schema has clear foreign key relationships but may lack sufficient indexes.'
@@ -318,4 +318,4 @@ def configure_db():
318
  return render_template('index.html', error=None, schema=current_schema, summary=current_summary, success="MySQL connection configured successfully.")
319
 
320
  if __name__ == '__main__':
321
- app.run(host='0.0.0.0', port=int(os.getenv('PORT', 5000)), debug=True)
 
136
  has_indexes = bool(indexes)
137
  if has_foreign_keys and has_indexes:
138
  summary['suggestions']['evaluation'] = 'Excellent'
139
+ summary['suggestions']['note'] = 'The schema is well-structured with defined foreign key constraints and indexes, supporting efficient queries.'
140
  elif has_foreign_keys:
141
  summary['suggestions']['evaluation'] = 'Good'
142
  summary['suggestions']['note'] = 'The schema has clear foreign key relationships but may lack sufficient indexes.'
 
318
  return render_template('index.html', error=None, schema=current_schema, summary=current_summary, success="MySQL connection configured successfully.")
319
 
320
  if __name__ == '__main__':
321
+ app.run(host='0.0.0.0', port=int(os.getenv('PORT', 7860)), debug=False)