🚨 Fixed linter errors
This commit is contained in:
@@ -16,6 +16,6 @@ def generate_code(specified_length: int) -> str:
|
|||||||
"r",
|
"r",
|
||||||
] # Capital stands for long press, lowercase letter for short press
|
] # Capital stands for long press, lowercase letter for short press
|
||||||
resulting_code = ""
|
resulting_code = ""
|
||||||
for i in range(specified_length):
|
for _ in range(specified_length):
|
||||||
resulting_code += random.choice(buttons)
|
resulting_code += random.choice(buttons)
|
||||||
return resulting_code
|
return resulting_code
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { error } from '@sveltejs/kit';
|
import { error } from '@sveltejs/kit';
|
||||||
import type { PageServerLoad } from './$types';
|
import type { PageServerLoad } from './$types';
|
||||||
|
|
||||||
export const load = (async ({ url }) => {
|
export const load = (({ url }) => {
|
||||||
const code = url.searchParams.get('code');
|
const code = url.searchParams.get('code');
|
||||||
const id = url.searchParams.get('id');
|
const id = url.searchParams.get('id');
|
||||||
if (!id || !code) {
|
if (!id || !code) {
|
||||||
|
|||||||
Reference in New Issue
Block a user