[chronojump/77] stats work now
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/77] stats work now
- Date: Thu, 4 Mar 2010 06:54:52 +0000 (UTC)
commit b5a91e53dd3cbfd7baeede3515d75efc16d84a26
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 4 13:39:24 2010 +0800
stats work now
src/gui/chronojump.cs | 5 -----
src/gui/person.cs | 9 ---------
src/sqlite/stat.cs | 2 +-
3 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index a19c8e9..7fd1308 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2008,16 +2008,12 @@ public class ChronoJumpWindow
private void on_recuperate_person_activate (object o, EventArgs args) {
Log.WriteLine("recuperate person");
personRecuperateWin = PersonRecuperateWindow.Show(app1, currentSession, prefsDigitsNumber);
- //personRecuperateWin.Button_recuperate.Clicked += new EventHandler(on_recuperate_person_accepted);
personRecuperateWin.FakeButtonDone.Clicked += new EventHandler(on_recuperate_person_accepted);
}
private void on_recuperate_person_accepted (object o, EventArgs args) {
- Log.WriteLine("aaaaaaaaa");
currentPerson = personRecuperateWin.CurrentPerson;
- Log.WriteLine("bbbb");
currentPersonSession = SqlitePersonSession.Select(currentPerson.UniqueID, currentSession.UniqueID);
- Log.WriteLine("cccccc");
myTreeViewPersons.Add(currentPerson.UniqueID.ToString(), currentPerson.Name);
@@ -2033,7 +2029,6 @@ public class ChronoJumpWindow
private void on_recuperate_persons_from_session_activate (object o, EventArgs args) {
Log.WriteLine("recuperate persons from other session");
personsRecuperateFromOtherSessionWin = PersonsRecuperateFromOtherSessionWindow.Show(app1, currentSession);
- //personsRecuperateFromOtherSessionWin.Button_recuperate.Clicked += new EventHandler(on_recuperate_persons_from_session_accepted);
personsRecuperateFromOtherSessionWin.FakeButtonDone.Clicked += new EventHandler(on_recuperate_persons_from_session_accepted);
}
diff --git a/src/gui/person.cs b/src/gui/person.cs
index caa0229..8d05f17 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -279,13 +279,6 @@ public class PersonRecuperateWindow {
}
}
- /*
- public Button Button_recuperate {
- set { button_recuperate = value; }
- get { return button_recuperate; }
- }
- */
-
public Button FakeButtonDone
{
set { fakeButtonDone = value; }
@@ -644,8 +637,6 @@ public class PersonsRecuperateFromOtherSessionWindow : PersonRecuperateWindow
}
}
- //TODO: do something with destroy, here and on recuperateFromOtherSession
-
}
diff --git a/src/sqlite/stat.cs b/src/sqlite/stat.cs
index d1ad2f8..31a6af7 100644
--- a/src/sqlite/stat.cs
+++ b/src/sqlite/stat.cs
@@ -158,7 +158,7 @@ class SqliteStat : Sqlite
fromString +
sessionString +
jumpTypeString +
- " AND jump.personID == person.uniqueID " +
+ " AND jump.personID == " + tp + ".uniqueID " +
// personSession stuff
" AND " + tp + ".uniqueID == " + tps + ".personID " +
" AND jump.sessionID == " + tps + ".sessionID " + //should work for simple and multi session
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]