Abhishek Thakur commited on
Commit
385467a
·
1 Parent(s): 8e26e22
competitions/info.py CHANGED
@@ -50,12 +50,12 @@ class CompetitionInfo:
50
  )
51
 
52
  def load_md(self, md_path):
53
- with open(md_path) as f:
54
  md = f.read()
55
  return md
56
 
57
  def load_config(self, config_path):
58
- with open(config_path) as f:
59
  config = json.load(f)
60
  return config
61
 
 
50
  )
51
 
52
  def load_md(self, md_path):
53
+ with open(md_path, "r", encoding="utf-8") as f:
54
  md = f.read()
55
  return md
56
 
57
  def load_config(self, config_path):
58
+ with open(config_path, "r", encoding="utf-8") as f:
59
  config = json.load(f)
60
  return config
61
 
competitions/templates/index.html CHANGED
@@ -283,7 +283,9 @@
283
  fetchAndDisplaySubmissionInfo(); // Fetch and display info on click
284
  });
285
 
286
- // Fetch and display info when the page loads
 
 
287
  fetchAndDisplayCompetitionInfo();
288
 
289
  document.querySelector('#submission-modal .cancel').addEventListener('click', function () {
 
283
  fetchAndDisplaySubmissionInfo(); // Fetch and display info on click
284
  });
285
 
286
+ // Fetch and display info wh
287
+
288
+ en the page loads
289
  fetchAndDisplayCompetitionInfo();
290
 
291
  document.querySelector('#submission-modal .cancel').addEventListener('click', function () {