🚨 Fixed linter errors

This commit is contained in:
Mawoka
2023-06-30 01:39:44 +02:00
parent 62538406df
commit 18b4bc0c6e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ def generate_code(specified_length: int) -> str:
"r",
] # Capital stands for long press, lowercase letter for short press
resulting_code = ""
for i in range(specified_length):
for _ in range(specified_length):
resulting_code += random.choice(buttons)
return resulting_code
@@ -1,7 +1,7 @@
import { error } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';
export const load = (async ({ url }) => {
export const load = (({ url }) => {
const code = url.searchParams.get('code');
const id = url.searchParams.get('id');
if (!id || !code) {