summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-04 22:17:20 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-04 22:17:20 (GMT)
commitc9384ea38e51b5efc4ce9d88130c8b52db0926e2 (patch)
tree6bce13bc7809c55a14e491e0edff3305ff4fec7e /abs/core/supplemental-web
parent7aa0a951a78696ee89078e50f6505658525a5d27 (diff)
downloadlinhes_pkgbuild-c9384ea38e51b5efc4ce9d88130c8b52db0926e2.zip
linhes_pkgbuild-c9384ea38e51b5efc4ce9d88130c8b52db0926e2.tar.gz
linhes_pkgbuild-c9384ea38e51b5efc4ce9d88130c8b52db0926e2.tar.bz2
ncid: fix up to:
1) work 2) added area code lookup for US only
Diffstat (limited to 'abs/core/supplemental-web')
-rw-r--r--abs/core/supplemental-web/contents/calllog.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/abs/core/supplemental-web/contents/calllog.py b/abs/core/supplemental-web/contents/calllog.py
index 908a9c6..9a13e14 100644
--- a/abs/core/supplemental-web/contents/calllog.py
+++ b/abs/core/supplemental-web/contents/calllog.py
@@ -17,29 +17,29 @@ def main(argv):
cursor.execute("select name,number,count(number) as '# calls' from cid group by number,name order by '# calls' DESC limit 20;")
result = cursor.fetchall()
-
-#Top shows
+
+#Top shows
#print '<div id="content"> <p></p>'
print '<div> <p></p>'
print '<table class="calllog">'
print "Top 20 callers"
searchstring='''<td> <a href="http://www.google.com/search?q=%s" > %s </a> </td> '''
- cursor.execute("select name,number,count(number) as '# calls' from cid group by number,name order by '# calls' DESC limit 20;")
+ cursor.execute("select name,number,count(number) from cid group by number,name order by count(number) DESC limit 20;")
result = cursor.fetchall()
for row in result:
print " <tr>"
#print " <td>",row[0],"</td>"
- print searchstring % (row[0], row [0])
+ print searchstring % (row[0], row [0])
print " <td>",row[2],"</td>"
#print " <td>",row[1],"</td>"
- print searchstring % (row[1], row [1])
+ print searchstring % (row[1], row [1])
print " </tr>"
#print "%40s %26s %10s" %(row[0],row[2],row[1])
print "</table>"
print "</div>"
#Top categorys
-
+
print '<br>'
print '<br>'
#print '<div id="content"> <p></p>'
@@ -54,9 +54,9 @@ def main(argv):
print " <td> %s </td>" %(row[0])
print " <td>",row[1],"</td>"
#print " <td>",row[2],"</td>"
- print searchstring % (row[2], row [2])
+ print searchstring % (row[2], row [2])
#print " <td>",row[3],"</td>"
- print searchstring % (row[3], row [3])
+ print searchstring % (row[3], row [3])
print " </tr>"
# print "%26s %26s %26s %26s " %(row[0],row[1],row[2],row[3])
print "</table>"