Browse Source

fix categories again

boyska 2 years ago
parent
commit
5101797b5a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ics2mdwn.py

+ 2 - 2
ics2mdwn.py

@@ -136,8 +136,8 @@ class HugoConverter(Converter):
             if "CATEGORIES" in talk:
                 try:
                     vobject = talk.get("CATEGORIES")
-                    if hasattr(vobject, 'cats'):
-                        vobject = vobject.cat
+                    if hasattr(vobject, "cats"):
+                        vobject = vobject.cats
                         frontmatter["tags"] = [str(t) for t in vobject]
                     else:
                         frontmatter["tags"] = [str(vobject)]