dev 1.0.176 → 1.0.177
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev/Database.rb +6 -0
- metadata +1 -1
data/lib/dev/Database.rb
CHANGED
@@ -42,6 +42,12 @@ class Database
|
|
42
42
|
@db.execute("insert or replace into Branches (Name,Uri) VALUES ('#{name}','#{uri}');")
|
43
43
|
end
|
44
44
|
|
45
|
+
def has_result(h)
|
46
|
+
results=get_results({:machine=>h[:machine],:user=>h[:user],start_time=>h[:start_time]})
|
47
|
+
return true if results.length > 0
|
48
|
+
return false
|
49
|
+
end
|
50
|
+
|
45
51
|
def add_result(h)
|
46
52
|
columns=""
|
47
53
|
values=""
|