Skip to content

Commit

Permalink
fix: 🐛 remove consts from python code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuruuh committed Dec 12, 2023
1 parent a81031e commit b79f2d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/doc/PyPi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</pre>
<pre>
<code class="language-javascript">
const blagues = BlaguesAPI("<mark>VOTRE_TOKEN_ICI</mark>")
blagues = BlaguesAPI("<mark>VOTRE_TOKEN_ICI</mark>")
</code>
</pre>
<p class="text">
Expand All @@ -59,13 +59,13 @@
</a>
<pre>
<code class="language-javascript">
const blague = await blagues.random()
blague = await blagues.random()
</code>
</pre>
<p class="text">A cette méthode, vous pouvez spécifier certains types que vous ne souhaitez pas recevoir.</p>
<pre>
<code class="language-javascript">
const blague = await blagues.random(disallow=[BlagueType.LIMIT, BlagueType.BEAUF])
blague = await blagues.random(disallow=[BlagueType.LIMIT, BlagueType.BEAUF])
</code>
</pre>
</div>
Expand All @@ -75,7 +75,7 @@
</a>
<pre>
<code class="language-javascript">
const blague = await blagues.random_categorized(BlagueType.DEV)
blague = await blagues.random_categorized(BlagueType.DEV)
</code>
</pre>
</div>
Expand All @@ -89,7 +89,7 @@
</p>
<pre>
<code class="language-javascript">
const blague = await blagues.from_id(50)
blague = await blagues.from_id(50)
</code>
</pre>
</div>
Expand All @@ -99,7 +99,7 @@
</a>
<pre>
<code class="language-javascript">
const blague = await blagues.count()
blague = await blagues.count()
</code>
</pre>
</div>
Expand Down

0 comments on commit b79f2d0

Please sign in to comment.