Skip to content

Commit 7cb139a

Browse files
committed
update README
1 parent 4771bb3 commit 7cb139a

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,17 @@ print(status)
3838

3939
### Pointers ✏
4040
- In a `Java` program the class name should always be ***`Main`***.
41+
- Currently supported languages :
42+
- C (gcc 7.2.0)
43+
- C++ (g++ 7.2.0)
44+
- Java (OpenJDK 8)
45+
- Python (3.6.0)
4146

4247

43-
### TODO 📑
44-
```
45-
❌ Compile multiple files asynchronously.
46-
✅ Convert the whole script into a module.
47-
❌ Add --help to display script usage.
48-
❌ Return live status of the submission.
49-
```
5048

5149
### Author
5250

5351
👥 **Bhupesh Varshney**
5452

5553
- Twitter: [@bhupeshimself](https://twitter.com/bhupeshimself)
56-
- Github: [@Bhupesh-V](https://github.com/Bhupesh-V)
54+
- DEV: [bhupesh](https://dev.to/bhupesh)

judge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"max_file_size": "1024"
2424
}
2525

26-
26+
API_URL = "https://api.judge0.com/submissions/"
2727

2828
def readCode(program):
2929
with open(program, 'r') as myfile:
@@ -45,7 +45,7 @@ def readStandardInput(output_file):
4545

4646
def readStatus(token):
4747
while True:
48-
req = requests.get("https://api.judge0.com/submissions/" + token['token'])
48+
req = requests.get(API_URL + token['token'])
4949
response = req.json()
5050
status = response['status']['description']
5151
if status != "Processing" and status != "In Queue":
@@ -71,7 +71,7 @@ def submit(program, language_id, *argv):
7171
api_params['language_id'] = language_id
7272
api_params['source_code'] = program
7373

74-
res = requests.post("https://api.judge0.com/submissions", data=api_params)
74+
res = requests.post(API_URL, data=api_params)
7575
token = res.json()
7676
return token
7777

0 commit comments

Comments
 (0)