[polari/wip/carlosg/tracker: 9/13] logger: Query ?time inside the triples block



commit e783bf984d207107f2721ce9ff59bd1b0f516d6c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Feb 24 23:09:50 2019 +0100

    logger: Query ?time inside the triples block
    
    This shouldn't be theoretically necessary, but we happen to hit
    the index this way.

 src/logger.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/logger.js b/src/logger.js
index 0ca64e5..80f90e8 100644
--- a/src/logger.js
+++ b/src/logger.js
@@ -150,10 +150,11 @@ var LogWalker = class {
             let sparql = `
                 select polari:text(?msg) as ?text
                        polari:nick(?sender) as ?sender
-                       polari:time(?msg) as ?time
+                       ?time
                        (exists { ?msg a polari:ActionMessage }) as ?isAction
                        (exists { ?sender a polari:SelfContact }) as ?isSelf
                 { ?msg a polari:Message;
+                       polari:time ?time;
                        polari:sender ?sender;
                        polari:channel <${channel}>
                 } order by desc(?time) desc(tracker:id(?msg))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]