Skip to content

Commit c992bf1

Browse files
committed
♻️ Switch JSON from remove blank
1 parent a089675 commit c992bf1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ def default():
8484

8585
sto = default()
8686
for ((year, site, storage, commodity), row) in csto.iterrows():
87-
sto[site][commodity][storage]['C New'] = row['C New']
88-
sto[site][commodity][storage]['C Total'] = row['C Total']
89-
sto[site][commodity][storage]['P New'] = row['P New']
90-
sto[site][commodity][storage]['P Total'] = row['P Total']
87+
sto[site][commodity][storage]['CNew'] = row['C New']
88+
sto[site][commodity][storage]['CTotal'] = row['C Total']
89+
sto[site][commodity][storage]['PNew'] = row['P New']
90+
sto[site][commodity][storage]['PTotal'] = row['P Total']
9191

9292
results = default()
9393
for (site, com) in get_input(prob, 'demand').columns.values.tolist():
@@ -111,7 +111,7 @@ def default():
111111
'results': results
112112
},
113113
'status': result_type,
114-
'log': 'Unkown result'
114+
'log': log
115115
}
116116

117117

0 commit comments

Comments
 (0)