Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CMEONE committed Mar 30, 2024
1 parent d336099 commit 0ebd77b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions static/js/scoutingsdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ ${_this.escape(teamNumber)} (Blue ${i + 1})
).json();
if (data.success) {
element.querySelector(".red").innerHTML = " ";
let csv = Papa.parse(data.body.csv).data;
let csv = Papa.parse(data.body.csv.replaceAll("\\\"", """)).data;
element.querySelector(
".data-table > tbody"
).innerHTML = csv
Expand All @@ -1548,10 +1548,12 @@ ${_this.escape(teamNumber)} (Blue ${i + 1})
? new Date(
parseInt(cell)
).toLocaleString()
: cell.replaceAll(
"\\n",
"<br>"
)
: _this
.escape(cell.replaceAll("&quot;", "\""))
.replaceAll(
"\\n",
"<br>"
)
}</td>`
)
.join("")}</tr>`;
Expand Down
2 changes: 1 addition & 1 deletion views/scouting/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script src="js/html5-qrcode.min.js"></script>
<script src="/js/sha256.min.js"></script>
<script src="/js/papaparse.min.js"></script>
<script src="/js/scoutingsdk.js?v=36"></script>
<script src="/js/scoutingsdk.js?v=37"></script>
<script src="/js/js-confetti.browser.js"></script>
<meta name="theme-color" content="#7d4090" />
<meta name="apple-mobile-web-app-status-bar-style" content="#7d4090">
Expand Down

0 comments on commit 0ebd77b

Please sign in to comment.