Skip to content

Commit feec432

Browse files
committed
bah
1 parent 58fde6e commit feec432

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

v3/submit_matrix_problem.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
#!/usr/bin/python
22

33
import cgi
4-
import doctest
5-
import json
64
import urllib
75
import urllib2
86

7+
#import cgitb
8+
#cgitb.enable()
9+
910
form = cgi.FieldStorage()
1011
user_code = form['submitted_code'].value
1112
prob_name = form['problem_name'].value
1213

1314
# run on the EC2 sandbox
1415
url = 'http://ec2-107-20-94-197.compute-1.amazonaws.com/cgi-bin/test_matrix_code.py'
15-
values = {'user_script' : script, 'problem_name': prob_name}
16+
values = {'user_script' : user_code, 'problem_name': prob_name}
1617

1718
data = urllib.urlencode(values)
1819
req = urllib2.Request(url, data)

0 commit comments

Comments
 (0)