Roxen.git / Advert.pmod / Run.pmod

version» Context lines:

Roxen.git/Advert.pmod/Run.pmod:212:   string get_stats(int run, object db)   {    return .Ad.do_stats("run="+run, db);   }         // update_weight   // updates the desired hourly impressions (weight) for a run   void update_weight(object db, string rid)   { -  object db, result; +  object result;    array row;    string query;       query = "SELECT COUNT(*) FROM impressions AS i WHERE i.run="+rid;    result = db->big_query(query);    if (row = result->fetch_row())    do_update_weight(db, row[0], rid);   }      // do_update_weight