vault backup: 2025-12-15 09:55:24
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m34s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m34s
This commit is contained in:
244
content/.obsidian/workspace.json
vendored
244
content/.obsidian/workspace.json
vendored
@@ -1,244 +0,0 @@
|
|||||||
{
|
|
||||||
"main": {
|
|
||||||
"id": "19179b278823b064",
|
|
||||||
"type": "split",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"id": "3138dc1364a3ebb8",
|
|
||||||
"type": "tabs",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"id": "c5854120d39261cd",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "pdf",
|
|
||||||
"state": {
|
|
||||||
"file": "Biokemi/Metabolism/Biokemi ur ett evolutionsperspektiv/Slides.pdf.pdf"
|
|
||||||
},
|
|
||||||
"icon": "lucide-file-text",
|
|
||||||
"title": "Slides.pdf"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"direction": "vertical"
|
|
||||||
},
|
|
||||||
"left": {
|
|
||||||
"id": "70dc58e919eddd95",
|
|
||||||
"type": "split",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"id": "47a30d427cdfb6db",
|
|
||||||
"type": "tabs",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"id": "ef51d026ab2efaae",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "file-explorer",
|
|
||||||
"state": {
|
|
||||||
"sortOrder": "customOrder",
|
|
||||||
"autoReveal": false
|
|
||||||
},
|
|
||||||
"icon": "lucide-folder-closed",
|
|
||||||
"title": "Files"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "eafa93eb6a28e671",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "search",
|
|
||||||
"state": {
|
|
||||||
"query": "tag:#provfråga IF2 ",
|
|
||||||
"matchingCase": true,
|
|
||||||
"explainSearch": false,
|
|
||||||
"collapseAll": false,
|
|
||||||
"extraContext": true,
|
|
||||||
"sortOrder": "byModifiedTime"
|
|
||||||
},
|
|
||||||
"icon": "lucide-search",
|
|
||||||
"title": "Search"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"direction": "horizontal",
|
|
||||||
"width": 479.50390243530273
|
|
||||||
},
|
|
||||||
"right": {
|
|
||||||
"id": "0948c66181b40af9",
|
|
||||||
"type": "split",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"id": "8e42749b81d80f27",
|
|
||||||
"type": "tabs",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"id": "131da419ce467615",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "outgoing-link",
|
|
||||||
"state": {
|
|
||||||
"file": "Biokemi/Plasmidlabb/Provfrågor.md",
|
|
||||||
"linksCollapsed": false,
|
|
||||||
"unlinkedCollapsed": true
|
|
||||||
},
|
|
||||||
"icon": "links-going-out",
|
|
||||||
"title": "Outgoing links from Provfrågor"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "5c1804c056cc2e31",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "tag",
|
|
||||||
"state": {
|
|
||||||
"sortOrder": "frequency",
|
|
||||||
"useHierarchy": false,
|
|
||||||
"showSearch": true,
|
|
||||||
"searchQuery": ""
|
|
||||||
},
|
|
||||||
"icon": "lucide-tags",
|
|
||||||
"title": "Tags"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "d4a03ebd29e7b96c",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "outline",
|
|
||||||
"state": {
|
|
||||||
"file": "Biokemi/Cellulära processer/Translation/Stoff.md",
|
|
||||||
"followCursor": false,
|
|
||||||
"showSearch": false,
|
|
||||||
"searchQuery": ""
|
|
||||||
},
|
|
||||||
"icon": "lucide-list",
|
|
||||||
"title": "Outline of Stoff"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "a23e068aac24f909",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "all-properties",
|
|
||||||
"state": {
|
|
||||||
"sortOrder": "frequency",
|
|
||||||
"showSearch": false,
|
|
||||||
"searchQuery": ""
|
|
||||||
},
|
|
||||||
"icon": "lucide-archive",
|
|
||||||
"title": "All properties"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "41f1a2a8dc1c3ad7",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "git-view",
|
|
||||||
"state": {},
|
|
||||||
"icon": "git-pull-request",
|
|
||||||
"title": "Source Control"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "f3646b47b9e138cd",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "agent-client-chat-view",
|
|
||||||
"state": {},
|
|
||||||
"icon": "bot-message-square",
|
|
||||||
"title": "Agent client"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "42527268e0f60e4a",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "file-properties",
|
|
||||||
"state": {
|
|
||||||
"file": "Biokemi/Plasmidlabb/Provfrågor.md"
|
|
||||||
},
|
|
||||||
"icon": "lucide-info",
|
|
||||||
"title": "File properties for Provfrågor"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"currentTab": 4
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"direction": "horizontal",
|
|
||||||
"width": 200
|
|
||||||
},
|
|
||||||
"left-ribbon": {
|
|
||||||
"hiddenItems": {
|
|
||||||
"switcher:Open quick switcher": false,
|
|
||||||
"command-palette:Open command palette": false,
|
|
||||||
"obsidian-git:Open Git source control": false,
|
|
||||||
"omnisearch:Omnisearch": false,
|
|
||||||
"bases:Create new base": false,
|
|
||||||
"canvas:Create new canvas": false,
|
|
||||||
"obsidian42-brat:BRAT": false,
|
|
||||||
"agent-client:Open agent client": false,
|
|
||||||
"graph:Open graph view": false,
|
|
||||||
"templates:Insert template": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"active": "41f1a2a8dc1c3ad7",
|
|
||||||
"lastOpenFiles": [
|
|
||||||
"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/Metabolism/🧂 Glykogen/Slides.pdf.pdf",
|
|
||||||
"Biokemi/Metabolism/🧂 Glykogen/Anteckingar.md",
|
|
||||||
"conflict-files-obsidian-git.md",
|
|
||||||
"table-export-001.xlsx",
|
|
||||||
"table-export-001.csv",
|
|
||||||
"Biokemi/Regleringar.md",
|
|
||||||
"Biokemi/Makromolekyler/Nukleotider/Instuderingsfrågor.md",
|
|
||||||
"Biokemi/Makromolekyler/Nukleotider/Anteckningar.md",
|
|
||||||
"Biokemi/Makromolekyler/Lipider/Instuderingsuppgifter.md",
|
|
||||||
"Biokemi/Makromolekyler/Kolhydrater/Instuderingsfrågor.md",
|
|
||||||
"Biokemi/Makromolekyler/Kemiska bindingar/Instuderingsfrågor.md",
|
|
||||||
"Biokemi/Makromolekyler/Kemiska bindingar/Anteckningar.md",
|
|
||||||
"Biokemi/Makromolekyler/Från aminosyror till proteiner/Instuderingsfrågor.md",
|
|
||||||
"Biokemi/Makromolekyler/Hemoglobin/Instuderingsfrågor.md",
|
|
||||||
"Biokemi/Makromolekyler/Cellmembran/Instuderingsfrågor.md",
|
|
||||||
"Biokemi/Makromolekyler/Från aminosyror till proteiner/Anteckningar II.md",
|
|
||||||
"Biokemi/Makromolekyler/Cellmembran/Slides.pdf.pdf",
|
|
||||||
"Biokemi/Gamla tentor/tools/simple_update_tags.py",
|
|
||||||
"Biokemi/Gamla tentor/tools/update_tags.py",
|
|
||||||
"Biokemi/Gamla tentor/tools/topic_mapping.tsv",
|
|
||||||
"Biokemi/Gamla tentor/tools",
|
|
||||||
"Biokemi/Gamla tentor/md_only.zip",
|
|
||||||
"Biokemi/Gamla tentor.zip",
|
|
||||||
"attachments/Pasted image 20251129234842.png",
|
|
||||||
"Untitled.canvas",
|
|
||||||
"Biokemi/Metabolism/Diagram/Glycolysis_overview.svg",
|
|
||||||
"Biokemi/Metabolism/Diagram/TCA_cycle.svg",
|
|
||||||
"attachments/Pasted image 20251129235332.png",
|
|
||||||
"attachments/Pasted image 20251129235536.png",
|
|
||||||
"Biokemi/Plasmidlabb/Bilder/IMG_1976.jpg",
|
|
||||||
"Biokemi/Plasmidlabb/Bilder/IMG_1974.jpg",
|
|
||||||
"Biokemi/Plasmidlabb/Bilder/IMG_0846.jpg",
|
|
||||||
"Biokemi/Plasmidlabb/Bilder/IMG_0848.jpg",
|
|
||||||
"Biokemi/Plasmidlabb/Bilder/IMG_0845.jpg",
|
|
||||||
"Biokemi/Metabolism/👋 Introduktion till metabolismen/Untitled.canvas",
|
|
||||||
"Biokemi/Metabolism/📋 Metabolismen översikt.canvas",
|
|
||||||
"🧪 Biokemi/🏋️♀️ Metabolism/📋 Metabolismen översikt.canvas",
|
|
||||||
"🧪 Biokemi/🏋️♀️ Metabolism/👋 Introduktion till metabolismen/Untitled.canvas"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -146,19 +146,18 @@ def main(root: Path, out: Path, mode: str = "anki"):
|
|||||||
details = answer_html + "\n\n" + meta_html
|
details = answer_html + "\n\n" + meta_html
|
||||||
|
|
||||||
# construct Anki deck name: use category if present, otherwise fallback to 'FÖRELÄSNING'
|
# construct Anki deck name: use category if present, otherwise fallback to 'FÖRELÄSNING'
|
||||||
deck_suffix = category if category else "FÖRELÄSNING"
|
deck_suffix = category if category else "?"
|
||||||
deck_name = f"Biokemi::Johan D - Tentafrågor::{deck_suffix}"
|
deck_name = f"Biokemi::Johan D - Tentafrågor::{deck_suffix.capitalize()}"
|
||||||
# For Anki export, include deck as first column
|
# For Anki export, include deck as first column
|
||||||
rows.append((question_html, details, category, deck_name))
|
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")
|
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":
|
||||||
writer.writerow(["date", "question_number", "category", "question", "maxpoints", "question", "answer"])
|
writer.writerow(["date", "question_number", "category", "question", "maxpoints", "question", "answer"])
|
||||||
#writer.writerow(["fråga", "svar", "kategori"])
|
|
||||||
for r in rows:
|
for r in rows:
|
||||||
writer.writerow(r)
|
writer.writerow(r)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user