Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions report.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,15 @@

missing_branches = []
for branch in branches:
try:
one = None
if db.tableExists(branch):
cursor.execute("SELECT date FROM %s ORDER BY date DESC LIMIT 1" % db.quote(branch))
one = cursor.fetchone()
if one == None:
print("No such table '%s'; specify it using --branch=XXX when running test.py" % branch)
# ignore this table and continue
missing_branches.append(branch)
continue
else:
v = one[0]
except:
if one is None:
print("No such table '%s'; specify it using --branch=XXX when running test.py" % branch)
# ignore this table and continue
missing_branches.append(branch)
continue
v = one[0]

dates_str[branch] = str(datetime.datetime.fromtimestamp(v).strftime('%Y-%m-%d %H:%M:%S'))
db.createDateIndex(branch)
Expand Down
Loading