From 9681c5d06b69182d0e273dfe7e8e876196586bed Mon Sep 17 00:00:00 2001 From: ferventcoder Date: Fri, 27 May 2011 05:06:52 +0000 Subject: [PATCH] fixing the script modified twice running each time bug. https://github.com/chucknorris/roundhouse/pull/5 --- product/roundhouse/databases/DefaultDatabase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/product/roundhouse/databases/DefaultDatabase.cs b/product/roundhouse/databases/DefaultDatabase.cs index 648e8dd..370ae45 100644 --- a/product/roundhouse/databases/DefaultDatabase.cs +++ b/product/roundhouse/databases/DefaultDatabase.cs @@ -279,6 +279,7 @@ public string get_current_script_hash(string script_name) DetachedCriteria crit = DetachedCriteria.For() .Add(Restrictions.Eq("script_name", script_name)) + .AddOrder(Order.Desc("id")) .SetMaxResults(1); try