diff options
author | ryuslash | 2010-04-22 22:24:38 +0200 |
---|---|---|
committer | ryuslash | 2010-04-22 22:24:38 +0200 |
commit | ef79c9991b55975157607c6d7b0cca52a6929023 (patch) | |
tree | 3baf1307ce5700189c7bb7e7a3b43705dbfcbe10 /backend.py | |
parent | 99b87aeffb9412ad7a0cc1f795fd6af89cf4eb76 (diff) | |
download | 4grab-ef79c9991b55975157607c6d7b0cca52a6929023.tar.gz 4grab-ef79c9991b55975157607c6d7b0cca52a6929023.zip |
Nasty bug where it didn't actually save anything
Diffstat (limited to 'backend.py')
-rw-r--r-- | backend.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -34,7 +34,9 @@ class _Backend(object): return False def save(self): - os.remove(self.table) + if os.path.exists(self.table): + os.remove(self.table) + self.create_store_if_needed() for f in self.__new_collection: self.store.insert(self.table, [f]) |