Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark authored Jul 24, 2023
1 parent e71a3b5 commit 4c3946d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bardapi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ def export_replit(
"_reqid": str(self._reqid),
"rt": "c",
}
# refference: https://github.com/jincheng9/markdown_supported_languages
support_langs = {
"python": "main.py",
"javascript": "index.js",
Expand All @@ -500,6 +499,7 @@ def export_replit(
"rust": "main.rs",
"perl": "main.pl",
}
# Reference: https://github.com/jincheng9/markdown_supported_languages
if langcode not in support_langs and filename is None:
raise Exception(
f"Language {langcode} not supported, please set filename manually."
Expand Down

0 comments on commit 4c3946d

Please sign in to comment.