Show
Ignore:
Timestamp:
10/17/09 01:34:17 (1 month ago)
Author:
cedenoj
Message:

refs #4959 A sql query is failing in the live site. One project probably deleted the wiki start page or renamed it. Thus causing the script to fail. We now just query the first wiki page written on a project. That should fix it. Tested in munin-vm3.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • management/bs-admin/trunk/projectsync/elgg15_project_sync.py

    r467 r469  
    118118#Created  
    119119def get_created(env): 
    120     sql = "SELECT time FROM wiki WHERE name='WikiStart' AND author='trac' ORDER BY time ASC LIMIT 1" 
     120    sql = "SELECT time FROM wiki WHERE author='trac' ORDER BY time ASC LIMIT 1" 
    121121    db=env.get_db_cnx() 
    122122    cursor=db.cursor()