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 3939nsimulate = {}
4040exectime = {}
4141
42+ missing_branches = []
4243for branch in branches :
4344 try :
4445 cursor .execute ("SELECT date FROM [%s] ORDER BY date DESC LIMIT 1" % branch )
4546 one = cursor .fetchone ()
4647 if one == None :
4748 print ("No such table '%s'; specify it using --branch=XXX when running test.py" % branch )
4849 # ignore this table and continue
49- branches . remove (branch )
50+ missing_branches . append (branch )
5051 continue
5152 else :
5253 v = one [0 ]
5354 except :
5455 print ("No such table '%s'; specify it using --branch=XXX when running test.py" % branch )
5556 # ignore this table and continue
56- branches . remove (branch )
57+ missing_branches . append (branch )
5758 continue
5859
5960 dates_str [branch ] = str (datetime .datetime .fromtimestamp (v ).strftime ('%Y-%m-%d %H:%M:%S' ))
7879 exectime [branch ] = 0.0
7980
8081entries = ""
82+ # removing missing branches
83+ for branch in missing_branches :
84+ branches .remove (branch )
8185
8286def checkEqual (iterator ):
8387 return len (set (iterator )) <= 1
You can’t perform that action at this time.
0 commit comments