File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 39
39
nsimulate = {}
40
40
exectime = {}
41
41
42
+ missing_branches = []
42
43
for branch in branches :
43
44
try :
44
45
cursor .execute ("SELECT date FROM [%s] ORDER BY date DESC LIMIT 1" % branch )
45
46
one = cursor .fetchone ()
46
47
if one == None :
47
48
print ("No such table '%s'; specify it using --branch=XXX when running test.py" % branch )
48
49
# ignore this table and continue
49
- branches . remove (branch )
50
+ missing_branches . append (branch )
50
51
continue
51
52
else :
52
53
v = one [0 ]
53
54
except :
54
55
print ("No such table '%s'; specify it using --branch=XXX when running test.py" % branch )
55
56
# ignore this table and continue
56
- branches . remove (branch )
57
+ missing_branches . append (branch )
57
58
continue
58
59
59
60
dates_str [branch ] = str (datetime .datetime .fromtimestamp (v ).strftime ('%Y-%m-%d %H:%M:%S' ))
78
79
exectime [branch ] = 0.0
79
80
80
81
entries = ""
82
+ # removing missing branches
83
+ for branch in missing_branches :
84
+ branches .remove (branch )
81
85
82
86
def checkEqual (iterator ):
83
87
return len (set (iterator )) <= 1
You can’t perform that action at this time.
0 commit comments