Skip to content

Commit

Permalink
minor UI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pjamesjoyce committed Jun 15, 2017
1 parent 60a0af3 commit 64ab237
Show file tree
Hide file tree
Showing 6 changed files with 447 additions and 83 deletions.
2 changes: 1 addition & 1 deletion lcopt/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def run_analyses(self, demand_item, demand_item_code, amount=1, methods=[('IPCC
'settings': {
'pie_cutoff': pie_cutoff,
'methods': [str(method) for method in methods],
'method_names': [method[1] for method in methods],
'method_names': [', '.join(method[1:]) for method in methods],
'method_units': [bw2.methods[method]['unit'] for method in methods],
'item': demand_item,
'item_code': demand_item_code,
Expand Down
7 changes: 6 additions & 1 deletion lcopt/interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,16 @@ def update_settings(self, postData):
#print (self.modelInstance.analysis_settings)

return "OK"

def create_app(self):

app = Flask(__name__)

def uc_first(string):
return string[0].upper() + string[1:]

app.jinja_env.filters['uc_first'] = uc_first

@app.route('/')
def index():
name = self.modelInstance.name
Expand Down

0 comments on commit 64ab237

Please sign in to comment.