mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Merge remote-tracking branch 'upstream/main' into svelte-reviewer-bottom
This commit is contained in:
commit
4897ea8173
3 changed files with 4 additions and 5 deletions
|
|
@ -189,7 +189,7 @@ Christian Donat <https://github.com/cdonat2>
|
|||
Asuka Minato <https://asukaminato.eu.org>
|
||||
Dillon Baldwin <https://github.com/DillBal>
|
||||
Voczi <https://github.com/voczi>
|
||||
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
|
||||
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
|
||||
Themis Demetriades <themis100@outlook.com>
|
||||
Luke Bartholomew <lukesbart@icloud.com>
|
||||
Gregory Abrasaldo <degeemon@gmail.com>
|
||||
|
|
@ -253,6 +253,7 @@ arold0 <arold0@icloud.com>
|
|||
nav1s <nav1s@proton.me>
|
||||
Ranjit Odedra <ranjitodedra.dev@gmail.com>
|
||||
Eltaurus <https://github.com/Eltaurus-Lt>
|
||||
jariji
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ pub(crate) fn write_python_interface(services: &[BackendService]) -> Result<()>
|
|||
write_header(&mut out)?;
|
||||
|
||||
for service in services {
|
||||
if service.name == "BackendAnkidroidService" {
|
||||
if ["BackendAnkidroidService", "BackendFrontendService"].contains(&service.name.as_str()) {
|
||||
continue;
|
||||
}
|
||||
for method in service.all_methods() {
|
||||
|
|
|
|||
|
|
@ -260,7 +260,6 @@ fn reveal_cloze(
|
|||
image_occlusion_text,
|
||||
question,
|
||||
active,
|
||||
cloze_ord,
|
||||
&cloze.ordinals,
|
||||
));
|
||||
return;
|
||||
|
|
@ -332,10 +331,9 @@ fn render_image_occlusion(
|
|||
text: &str,
|
||||
question_side: bool,
|
||||
active: bool,
|
||||
ordinal: u16,
|
||||
ordinals: &[u16],
|
||||
) -> String {
|
||||
if (question_side && active) || ordinal == 0 {
|
||||
if (question_side && active) || ordinals.contains(&0) {
|
||||
format!(
|
||||
r#"<div class="cloze" data-ordinal="{}" {}></div>"#,
|
||||
ordinals_str(ordinals),
|
||||
|
|
|
|||
Loading…
Reference in a new issue