statistics do not work. showing the same alliance more than once
alliance statistic
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
is that
-
Normal tarayıcı sürümünde çalışıyor mu?
-
Master wrote:
is that
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 -
Master wrote:
is that
VERY SAD -
Errors occasionally occur.
This can be resolved by deleting all statistical data from the db.-------------------------------------------------------------------------------------- -
noonn wrote:
Errors occasionally occur.
This can be resolved by deleting all statistical data from the db.
VERY SAD -
yamilrh wrote:
noonn wrote:
Errors occasionally occur.
This can be resolved by deleting all statistical data from the db.
^^;-------------------------------------------------------------------------------------- -
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
- .
- .
- .
- .
- }
- unset($AllyPoints);
- $AllySQL = substr($AllySQL, 0, -2).';';
- $this->SaveDataIntoDB($AllySQL);
- # Add duplicate quary
- $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;';
- $this->SaveDataIntoDB($sqldel);
- }
- $this->SetNewRanks();
- $this->CheckUniverseAccounts($UniData);
- $this->writeRecordData();
- return $this->SomeStatsInfos();
- }
- }
--------------------------------------------------------------------------------------
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Users Online 1
1 Guest