vault backup: 2025-12-15 09:06:48
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m29s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m29s
This commit is contained in:
38
content/.obsidian/workspace.json
vendored
38
content/.obsidian/workspace.json
vendored
@@ -13,7 +13,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "pdf",
|
"type": "pdf",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Biokemi/Metabolism/🧂 Glykogen/Slides.pdf.pdf"
|
"file": "Biokemi/Metabolism/Biokemi ur ett evolutionsperspektiv/Slides.pdf.pdf"
|
||||||
},
|
},
|
||||||
"icon": "lucide-file-text",
|
"icon": "lucide-file-text",
|
||||||
"title": "Slides.pdf"
|
"title": "Slides.pdf"
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "search",
|
"type": "search",
|
||||||
"state": {
|
"state": {
|
||||||
"query": "",
|
"query": "tag:#provfråga IF2 ",
|
||||||
"matchingCase": true,
|
"matchingCase": true,
|
||||||
"explainSearch": false,
|
"explainSearch": false,
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "horizontal",
|
"direction": "horizontal",
|
||||||
"width": 284.50390243530273
|
"width": 479.50390243530273
|
||||||
},
|
},
|
||||||
"right": {
|
"right": {
|
||||||
"id": "0948c66181b40af9",
|
"id": "0948c66181b40af9",
|
||||||
@@ -171,7 +171,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "horizontal",
|
"direction": "horizontal",
|
||||||
"width": 429.5
|
"width": 200
|
||||||
},
|
},
|
||||||
"left-ribbon": {
|
"left-ribbon": {
|
||||||
"hiddenItems": {
|
"hiddenItems": {
|
||||||
@@ -187,10 +187,23 @@
|
|||||||
"templates:Insert template": false
|
"templates:Insert template": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "c5854120d39261cd",
|
"active": "41f1a2a8dc1c3ad7",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Biokemi/Metabolism/🧂 Glykogen/Anteckingar.md",
|
"Biokemi/Metabolism/Biokemi ur ett evolutionsperspektiv/Instuderingsfrågor.md",
|
||||||
|
"Biokemi/Cellulära processer/RNA syntes/Instuderingsfrågor.md",
|
||||||
|
"Biokemi/Cellulära processer/RNA syntes/Anteckningar.md",
|
||||||
|
"Biokemi/Cellulära processer/Kromatin/Instuderingsfrågor.md",
|
||||||
|
"Biokemi/Gamla tentor/2024-05-15/14.md",
|
||||||
|
"Biokemi/Gamla tentor/2024-08-01/13.md",
|
||||||
|
"Biokemi/Cellulära processer/Translation/Stoff.md",
|
||||||
|
"Biokemi/Metabolismseminarie/4. Syre i ETK.md",
|
||||||
|
"Biokemi/Metabolismseminarie/6. Glykogen.md",
|
||||||
|
"Biokemi/Cellulära processer/Transport över cellmembran/Stoff.md",
|
||||||
|
"Biokemi/Gamla tentor/2023-05-15/17.md",
|
||||||
|
"Biokemi/Gamla tentor/2022-01-29/32.md",
|
||||||
"Biokemi/Behöver göra.md",
|
"Biokemi/Behöver göra.md",
|
||||||
|
"Biokemi/Metabolism/🧂 Glykogen/Slides.pdf.pdf",
|
||||||
|
"Biokemi/Metabolism/🧂 Glykogen/Anteckingar.md",
|
||||||
"conflict-files-obsidian-git.md",
|
"conflict-files-obsidian-git.md",
|
||||||
"table-export-001.xlsx",
|
"table-export-001.xlsx",
|
||||||
"table-export-001.csv",
|
"table-export-001.csv",
|
||||||
@@ -205,26 +218,13 @@
|
|||||||
"Biokemi/Makromolekyler/Hemoglobin/Instuderingsfrågor.md",
|
"Biokemi/Makromolekyler/Hemoglobin/Instuderingsfrågor.md",
|
||||||
"Biokemi/Makromolekyler/Cellmembran/Instuderingsfrågor.md",
|
"Biokemi/Makromolekyler/Cellmembran/Instuderingsfrågor.md",
|
||||||
"Biokemi/Makromolekyler/Från aminosyror till proteiner/Anteckningar II.md",
|
"Biokemi/Makromolekyler/Från aminosyror till proteiner/Anteckningar II.md",
|
||||||
"Biokemi/Makromolekyler/Från aminosyror till proteiner/Anteckningar.md",
|
|
||||||
"Biokemi/Makromolekyler/Cellmembran/Slides.pdf.pdf",
|
"Biokemi/Makromolekyler/Cellmembran/Slides.pdf.pdf",
|
||||||
"Biokemi/Gamla tentor/2024-08-01/15.md",
|
|
||||||
"Biokemi/Gamla tentor/2022-12-19/34.md",
|
|
||||||
"Biokemi/Gamla tentor/2021-12-16/34.md",
|
|
||||||
"Biokemi/Gamla tentor/2024-08-01/35.md",
|
|
||||||
"Biokemi/Gamla tentor/2024-12-20/36.md",
|
|
||||||
"Biokemi/Gamla tentor/2022-01-29/34.md",
|
|
||||||
"Biokemi/Gamla tentor/2022-05-16/34.md",
|
|
||||||
"Biokemi/Gamla tentor/2025-02-01/35.md",
|
|
||||||
"Biokemi/Gamla tentor/2022-12-19/1.md",
|
|
||||||
"Biokemi/Gamla tentor/tools/simple_update_tags.py",
|
"Biokemi/Gamla tentor/tools/simple_update_tags.py",
|
||||||
"Biokemi/Plasmidlabb/Provfrågor.md",
|
|
||||||
"Biokemi/Gamla tentor/tools/update_tags.py",
|
"Biokemi/Gamla tentor/tools/update_tags.py",
|
||||||
"Biokemi/Gamla tentor/tools/topic_mapping.tsv",
|
"Biokemi/Gamla tentor/tools/topic_mapping.tsv",
|
||||||
"Biokemi/Gamla tentor/tools",
|
"Biokemi/Gamla tentor/tools",
|
||||||
"Biokemi/Gamla tentor/md_only.zip",
|
"Biokemi/Gamla tentor/md_only.zip",
|
||||||
"Biokemi/Gamla tentor.zip",
|
"Biokemi/Gamla tentor.zip",
|
||||||
"Biokemi/Metabolism/Biokemi ur ett evolutionsperspektiv/Provfrågor.md",
|
|
||||||
"Biokemi/Metabolism/Biokemi ur ett evolutionsperspektiv/Slides.pdf.pdf",
|
|
||||||
"attachments/Pasted image 20251129234842.png",
|
"attachments/Pasted image 20251129234842.png",
|
||||||
"Untitled.canvas",
|
"Untitled.canvas",
|
||||||
"Biokemi/Metabolism/Diagram/Glycolysis_overview.svg",
|
"Biokemi/Metabolism/Diagram/Glycolysis_overview.svg",
|
||||||
|
|||||||
3225
wip/anki-tentafrågor.csv
Normal file
3225
wip/anki-tentafrågor.csv
Normal file
File diff suppressed because it is too large
Load Diff
@@ -145,10 +145,15 @@ def main(root: Path, out: Path, mode: str = "anki"):
|
|||||||
# second column contains the rendered answer followed by metadata HTML
|
# second column contains the rendered answer followed by metadata HTML
|
||||||
details = answer_html + "\n\n" + meta_html
|
details = answer_html + "\n\n" + meta_html
|
||||||
|
|
||||||
rows.append((question_html, details, category))
|
# construct Anki deck name: use category if present, otherwise fallback to 'FÖRELÄSNING'
|
||||||
|
deck_suffix = category if category else "FÖRELÄSNING"
|
||||||
|
deck_name = f"Biokemi::Johan D - Tentafrågor::{deck_suffix}"
|
||||||
|
# For Anki export, include deck as first column
|
||||||
|
rows.append((question_html, details, category, deck_name))
|
||||||
# write CSV with semicolon delimiter
|
# write CSV with semicolon delimiter
|
||||||
out.parent.mkdir(parents=True, exist_ok=True)
|
out.parent.mkdir(parents=True, exist_ok=True)
|
||||||
with out.open("w", encoding="utf-8", newline="") as f:
|
with out.open("w", encoding="utf-8", newline="") as f:
|
||||||
|
f.write("#deck column 4\n")
|
||||||
writer = csv.writer(f, delimiter=";", quoting=csv.QUOTE_ALL)
|
writer = csv.writer(f, delimiter=";", quoting=csv.QUOTE_ALL)
|
||||||
# If exporting for Excel, add a header row matching the columns
|
# If exporting for Excel, add a header row matching the columns
|
||||||
if mode == "excel":
|
if mode == "excel":
|
||||||
|
|||||||
Reference in New Issue
Block a user