Skip to content

Commit 6221545

Browse files
fixed urls.py
1 parent 7fde0be commit 6221545

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

codeGen/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
urlpatterns = [
2020
path('admin/', admin.site.urls),
21-
path('optimizer/', include(('optimizer.urls', 'optimizer'), namespace='optimizer')),
21+
path('', include(('optimizer.urls', 'optimizer'), namespace='optimizer')),
2222
]

optimizer/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import subprocess
1+
# TODO : UNCOMMENT FOLLOWING LINE
2+
# import subprocess
23

34

45
class Code:
@@ -11,7 +12,8 @@ def writeOutputNormal(self):
1112
if self.in_code is not None:
1213
with open("input.c", "w") as f:
1314
f.write(self.in_code)
14-
subprocess.check_output(["./a.out", "input.c"])
15+
# TODO : UNCOMMENT FOLLOWING LINE
16+
# subprocess.check_output(["./a.out", "input.c"])
1517

1618
def optimizeCodeFromFile(self, fileName):
1719
with open(fileName, 'r') as readFile:

0 commit comments

Comments
 (0)