mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Fix lint errors
This commit is contained in:
parent
4dd402334f
commit
f8ce1c3526
2 changed files with 6 additions and 2 deletions
|
@ -745,6 +745,7 @@ def show_in_media_folder() -> bytes:
|
||||||
|
|
||||||
return b""
|
return b""
|
||||||
|
|
||||||
|
|
||||||
async def record_audio() -> bytes:
|
async def record_audio() -> bytes:
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
future = loop.create_future()
|
future = loop.create_future()
|
||||||
|
@ -765,6 +766,7 @@ async def record_audio() -> bytes:
|
||||||
|
|
||||||
return generic_pb2.String(val=path if path else "").SerializeToString()
|
return generic_pb2.String(val=path if path else "").SerializeToString()
|
||||||
|
|
||||||
|
|
||||||
post_handler_list = [
|
post_handler_list = [
|
||||||
congrats_info,
|
congrats_info,
|
||||||
get_deck_configs_for_update,
|
get_deck_configs_for_update,
|
||||||
|
|
|
@ -22,7 +22,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import { setFormat } from "../old-editor-adapter";
|
import { setFormat } from "../old-editor-adapter";
|
||||||
import { editingInputIsRichText } from "../rich-text-input";
|
import { editingInputIsRichText } from "../rich-text-input";
|
||||||
import LatexButton from "./LatexButton.svelte";
|
import LatexButton from "./LatexButton.svelte";
|
||||||
import { filenameToLink, openFilePickerForMedia } from "../rich-text-input/data-transfer";
|
import {
|
||||||
|
filenameToLink,
|
||||||
|
openFilePickerForMedia,
|
||||||
|
} from "../rich-text-input/data-transfer";
|
||||||
import { addMediaFromPath, recordAudio } from "@generated/backend";
|
import { addMediaFromPath, recordAudio } from "@generated/backend";
|
||||||
|
|
||||||
const { focusedInput } = context.get();
|
const { focusedInput } = context.get();
|
||||||
|
@ -42,7 +45,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
await attachPath(path);
|
await attachPath(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const recordCombination = "F5";
|
const recordCombination = "F5";
|
||||||
|
|
||||||
async function attachRecordingOnFocus(): Promise<void> {
|
async function attachRecordingOnFocus(): Promise<void> {
|
||||||
|
|
Loading…
Reference in a new issue