Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsteban Bordon <ebordon@plan.ceibal.edu.uy>2012-04-26 12:40:50 (GMT)
committer Esteban Bordon <ebordon@plan.ceibal.edu.uy>2012-04-26 12:40:50 (GMT)
commit6639fe3fd851bfb9704c79054799d490013141f8 (patch)
treefe5f6945259596d743bfcab551c1ea1568cf9f72
parentc55d622d61be595bd2a436c56fd6691b9f08292b (diff)
Arreglo en funcion para borrar mensajes
-rw-r--r--store.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/store.py b/store.py
index 973ed27..9940403 100644
--- a/store.py
+++ b/store.py
@@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS notifications (id INTEGER PRIMARY KEY,title VARCHAR(3
c = con.cursor()
c.execute('BEGIN TRANSACTION')
try:
- c.execute('delete from notifications where id=%i' %id)
+ c.execute('delete from notifications where id=%i' %id_msg)
except sqlite3.IntegrityError,e:
print "Error al eliminar datos: %s" %str(e)
c.execute('END TRANSACTION')