Commit 3284983ccd78d0f331f840be4ea46c5397c2545c

Fix silly bugs
  
3333 message = message + cache.get("evec_mail_" + str(mailsend))
3434 except:
3535 pass
36 if thispass > 50:
37 cont = True
38 break
36# if thispass > 50:
37# cont = True
38# break
3939
4040 smtpsess = smtplib.SMTP('localhost')
4141 datae = "To: evec-upload@lists.stackworks.net\nPrecedence: bulk\nX-EVEC-UserIdHash: 0" + "\nSubject: Upload\n\n" + message
  
167167 source = "evec_upload_cache"
168168
169169 try:
170 source = line[13]
170 source = line[14]
171171 except:
172172 pass
173173
174174 self.station_check(db, station = station, system = system, region = region)
175175
176
176177 cur.execute("""
177178 INSERT INTO current_market (regionid, systemid, stationid, typeid,
178179 bid,price, orderid, minvolume, volremain, volenter, issued, duration, range, reportedby)
183183 """, [region, line[12], line[10], typeid, `bid`, line[0], line[4], line[6],
184184 int(float(line[1])), line[5], line[8], line[9]+" days", line[3], 0])
185185
186 db.commit()
187 rows = cur.execute("SELECT orderid FROM archive_market WHERE orderid = %s AND volremain = %s", [ line[4], int(float(line[1]))])
188 if rows == 0:
186 cur.execute("SELECT count(orderid) FROM archive_market WHERE orderid = %s AND volremain = %s AND regionid = %s", [ line[4], int(float(line[1])), region])
187 hasdata = cur.fetchone()
188 if not hasdata:
189 response += "This includes new order informaion "
189190 cur.execute("""
190191 INSERT INTO archive_market (regionid, systemid, stationid, typeid,
191192 bid,price, orderid, minvolume, volremain, volenter, issued, duration, range, reportedby, source)