Commit 46ce097b authored by Krishnakant Mane's avatar Krishnakant Mane Committed by Reshma Atmaram Bhatawadekar
Browse files

corrected integer formats for sql. Under trial.

parent 892eef54
......@@ -20,11 +20,11 @@ Copyright (C) 2013, 2014, 2015, 2016 Digital Freedom Foundation
Contributors:
"Krishnakant Mane" <kk@gmail.com>
"Krishnakant Mane" <kkmane@riseup.net>
"Ishan Masdekar " <imasdekar@dff.org.in>
"Navin Karkera" <navin@dff.org.in>
'Prajkta Patkar'<prajakta@dff.org.in>
'Reshma Bhatwadekar'<bhatawadekar1reshma@gmail.com>
'Reshma Bhatwadekar'<reshma_b@riseup.net>
"""
from pyramid.view import view_defaults, view_config
......@@ -475,7 +475,7 @@ class api_organisation(object):
# try:
self.con =eng.connect()
print self.request.params["statecode"]
gstinResult = self.con.execute("select gstin ->>'%d' as stgstin from organisation where gstin ? '%d' and orgcode = %d "%(int(self.request.params["statecode"]),int(authDetails["orgcode"]) ) )
gstinResult = self.con.execute("select gstin ->> %d as stgstin from organisation where gstin ? %d and orgcode = %d "%(int(self.request.params["statecode"]),int(authDetails["orgcode"])) )
gstinval = ""
if gstinResult.rowcount()>0 :
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment