diff options
author | megazig <megazig@megazig.(none)> | 2012-01-07 01:28:11 -0600 |
---|---|---|
committer | megazig <megazig@megazig.(none)> | 2012-01-07 01:28:11 -0600 |
commit | ca9d90bd1db97737893690d370e4f21e0c3955e8 (patch) | |
tree | a06ecada42a92a1c9659ae5850f27679eab0c114 /classy.py | |
parent | fa78f7be38f64a8c4b94f3220cc70b75b986f5dd (diff) | |
download | classy-ca9d90bd1db97737893690d370e4f21e0c3955e8.tar.gz classy-ca9d90bd1db97737893690d370e4f21e0c3955e8.zip |
Fixed 1am mistakes :(
Diffstat (limited to '')
-rw-r--r-- | classy.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -599,10 +599,10 @@ def create_class(): @menu_item('Delete Class') def delete_class(): cls = choose_class('Choose the class to delete', False) - if base != None: + if cls != None: name = cls.name - del db.class_by_struct[cls.struct] - del db.class_by_name[cls.name] + del db.classes_by_struct[cls.struct] + del db.classes_by_name[cls.name] print("Deleted class %s" % name) else: Warning("No class chosen") |