[sysadmin-bin] rt3 to rt4 move



commit bb989bfe7855ff5047eedcdc384fc4e5bfd2621e
Author: Andrea Veri <av gnome org>
Date:   Tue Oct 22 15:58:53 2013 +0200

    rt3 to rt4 move

 {rt3 => rt4}/rt.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rt3/rt.py b/rt4/rt.py
similarity index 96%
rename from rt3/rt.py
rename to rt4/rt.py
index 234e349..d4411cf 100755
--- a/rt3/rt.py
+++ b/rt4/rt.py
@@ -22,7 +22,7 @@ QUEUES = {
 def write_stat_file(cursor, queue):
     qinfo = QUEUES[queue]
     qnr = qinfo['nr']
-    OUTPUT = '/usr/local/www/rt3stats/%s.html' % queue
+    OUTPUT = '/usr/local/www/rt4stats/%s.html' % queue
 
     cursor.execute ('SELECT COUNT(*) FROM Tickets WHERE Type="ticket" AND Queue=%s AND Status="new"', qnr)
     newc = cursor.fetchone ()[0]
@@ -88,11 +88,11 @@ def write_stat_file(cursor, queue):
     output.close ()
 
 if __name__ == "__main__":
-    f = open ('/home/admin/secret/rt3stats')
+    f = open ('/home/admin/secret/rt4stats')
     dbpass = f.readline ().strip ()
     f.close ()
 
-    connection = MySQLdb.connect ('drawable-back', 'rtstats', dbpass, 'rt3')
+    connection = MySQLdb.connect ('drawable-back', 'rtstats', dbpass, 'rt4')
     cursor = connection.cursor ()
 
     for queue in QUEUES.keys():


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