From 7939bf819a2ff5bec28937c7e37c2693a132a7a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Mon, 15 Nov 2010 19:41:36 +0100 Subject: [PATCH] Bugfix --- automanga.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automanga.py b/automanga.py index 1952156..7b6aacf 100755 --- a/automanga.py +++ b/automanga.py @@ -306,6 +306,9 @@ class Directory(object): def __iter__(self): return self._opened_nodes.itervalues() + def __contains__(self, name): + return name in self._nodes + def __getitem__(self, name): if name in self._nodes: return getattr(self, name) @@ -445,7 +448,7 @@ class Profile(object): if manga.title() not in self.mangas: self.mangas.add_file(manga.title()) file = self.mangas[manga.title()] - file.page = manga.mark + file.page = manga.mark.name file.save() def load_manga(self, path): -- 2.11.0