dipesh2025 commited on
Commit
39add24
·
verified ·
1 Parent(s): 839cd34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -43,9 +43,8 @@ def run_cppcheck(source_code: str):
43
  # Check for the code checker tool
44
  ensure_tool("cppcheck")
45
 
46
- # Write uploaded code to temp file
47
- # tf = NamedTemporaryFile(suffix=".cpp", delete=False)
48
- # choose suffix based on extension
49
  ext = ".c" if source_code.strip().startswith("#include") and ".c" in source_code_name else ".cpp"
50
  tf = NamedTemporaryFile(suffix=ext, delete=False)
51
  print("ext" + ext)
 
43
  # Check for the code checker tool
44
  ensure_tool("cppcheck")
45
 
46
+ print(source_code)
47
+
 
48
  ext = ".c" if source_code.strip().startswith("#include") and ".c" in source_code_name else ".cpp"
49
  tf = NamedTemporaryFile(suffix=ext, delete=False)
50
  print("ext" + ext)