Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(48) | Call(48) | Derive(0) | Import(0)
src/b/3/b3-1.9.2/b3/extplugins/xlrstats.py b3(Download)
id = client.id q = 'SELECT * from %s WHERE client_id = %s LIMIT 1' % (self.playerstats_table, id) cursor = self.query(q) if cursor and (cursor.rowcount > 0): r = cursor.getRow()
def get_WeaponStats(self, name): s = WeaponStats() q = 'SELECT * from %s WHERE name = "%s" LIMIT 1' % (self.weaponstats_table, name) cursor = self.query(q) if cursor and (cursor.rowcount > 0):
def get_Bodypart(self, name): s = Bodyparts() q = 'SELECT * from %s WHERE name = "%s" LIMIT 1' % (self.bodyparts_table, name) cursor = self.query(q) if cursor and (cursor.rowcount > 0):
def get_MapStats(self, name): s = MapStats() q = 'SELECT * from %s WHERE name = "%s" LIMIT 1' % (self.mapstats_table, name) cursor = self.query(q) if cursor and (cursor.rowcount > 0):
def get_WeaponUsage(self, weaponid, playerid): s = WeaponUsage() q = 'SELECT * from %s WHERE weapon_id = %s AND player_id = %s LIMIT 1' % ( self.weaponusage_table, weaponid, playerid) cursor = self.query(q)
src/b/i/big-brother-bot-HEAD/b3/extplugins/xlrstats.py big-brother-bot(Download)
id = client.id q = 'SELECT * from %s WHERE client_id = %s LIMIT 1' % (self.playerstats_table, id) cursor = self.query(q) if cursor and (cursor.rowcount > 0): r = cursor.getRow()
def get_WeaponStats(self, name): s = WeaponStats() q = 'SELECT * from %s WHERE name = "%s" LIMIT 1' % (self.weaponstats_table, name) cursor = self.query(q) if cursor and (cursor.rowcount > 0):
def get_Bodypart(self, name): s = Bodyparts() q = 'SELECT * from %s WHERE name = "%s" LIMIT 1' % (self.bodyparts_table, name) cursor = self.query(q) if cursor and (cursor.rowcount > 0):
def get_MapStats(self, name): s = MapStats() q = 'SELECT * from %s WHERE name = "%s" LIMIT 1' % (self.mapstats_table, name) cursor = self.query(q) if cursor and (cursor.rowcount > 0):
def get_WeaponUsage(self, weaponid, playerid): s = WeaponUsage() q = 'SELECT * from %s WHERE weapon_id = %s AND player_id = %s LIMIT 1' % ( self.weaponusage_table, weaponid, playerid) cursor = self.query(q)