alliance statistic

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Master wrote:

      is that
      EL problema esta que en la tabla STATPOINTS están los datos repetidos, de momento para resolver tienes que hacer manualmente TRUNCATE TABLE uni1_STATPOINTS; así borrarías la tabla entera y al actualizar manualmente por el panel de administración el crearía de nuevo las estadísticas...
      pero esta no crearia los OLD_tech, ni OLD_rank etc.. pero ya para la proxima actualización ya deban salir en caso de que posteriormente te vuelva a repetir los campos en la tabla reviza la funcion de insertar,que funciona esa estadisticas cuando el cronjob ejectuta lo que haces es tomar la misma informacion de la tabla e insertarla de nuevo.
      VERY SAD :/ :/ :/ :/
    • Errors occasionally occur.
      This can be resolved by deleting all statistical data from the db.
      --------------------------------------------------------------------------------------
    • yamilrh wrote:

      noonn wrote:

      Errors occasionally occur.
      This can be resolved by deleting all statistical data from the db.
      Si preguntaba si habia alguna otra solución que no fuera esa
      I don't have any ideas yet.
      ^^;
      --------------------------------------------------------------------------------------
    • Master wrote:

      statistics do not work. showing the same alliance more than once


      hi~

      I added code for that issue.
      I think I just need to delete one of the duplicate data.
      It works well and removes duplicate files well.

      open file
      includes/classes/class.statbuilder.php

      Add the following code below

      PHP Source Code

      1. .
      2. .
      3. .
      4. .
      5. }
      6. unset($AllyPoints);
      7. $AllySQL = substr($AllySQL, 0, -2).';';
      8. $this->SaveDataIntoDB($AllySQL);
      9. # Add duplicate quary
      10. $sqldel = 'DELETE a FROM %%STATPOINTS%% a, %%STATPOINTS%% b WHERE a.tech_rank < b.tech_rank AND a.id_owner = b.id_owner AND a.stat_type = b.stat_type;';
      11. $this->SaveDataIntoDB($sqldel);
      12. }
      13. $this->SetNewRanks();
      14. $this->CheckUniverseAccounts($UniData);
      15. $this->writeRecordData();
      16. return $this->SomeStatsInfos();
      17. }
      18. }
      Display All
      --------------------------------------------------------------------------------------