[Mpuls-commits] r6078 - base/trunk/mpulsweb/model

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 1 16:46:20 CEST 2012


Author: torsten
Date: 2012-10-01 16:46:20 +0200 (Mon, 01 Oct 2012)
New Revision: 6078

Modified:
   base/trunk/mpulsweb/model/user.py
Log:
Int cast not needed


Modified: base/trunk/mpulsweb/model/user.py
===================================================================
--- base/trunk/mpulsweb/model/user.py	2012-09-27 15:58:34 UTC (rev 6077)
+++ base/trunk/mpulsweb/model/user.py	2012-10-01 14:46:20 UTC (rev 6078)
@@ -352,7 +352,7 @@
             conn = db.getConnection()
             cur = conn.cursor()
             cur.execute(FETCH_LINKED_AGENCY % {'user_id': self.id})
-            return [int(id[0]) for id in cur.fetchall()]
+            return [id[0] for id in cur.fetchall()]
         else:
             return []
 



More information about the Mpuls-commits mailing list