Fisrt batch of updates. Renaming all the columns into lower case names used.

This commit is contained in:
Darko
2015-03-09 12:47:47 +01:00
parent 6bd1891129
commit 2b917ccd28
248 changed files with 3195 additions and 3195 deletions
+2 -2
View File
@@ -36,13 +36,13 @@ print(bcolors.HEADER + "\nBinaries Threaded Started at {}".format(datetime.datet
#get active groups
if len(sys.argv) == 2:
try:
cur[0].execute("SELECT name FROM groups WHERE ID IN " + sys.argv[1])
cur[0].execute("SELECT name FROM groups WHERE id IN " + sys.argv[1])
datas = cur[0].fetchall()
except:
cur[0].execute("SELECT name FROM groups WHERE name = '" + sys.argv[1] + "'")
datas = cur[0].fetchall()
if len(datas) == 0:
cur[0].execute("SELECT name FROM groups WHERE ID = " + sys.argv[1])
cur[0].execute("SELECT name FROM groups WHERE id = " + sys.argv[1])
datas = cur[0].fetchall()
if len(datas) == 0:
print(bcolors.ERROR + "No Active Groups" + bcolors.ENDC)