brusselopole / Worldopole

Worldopole is a third party extension for RocketMap showing some nice statistics.
MIT License
85 stars 79 forks source link

[Ready for Testing] DB-Code Refactoring & Moncole-Alternate support #353

Closed 123FLO321 closed 5 years ago

123FLO321 commented 6 years ago

Description

Moved all queries to a new class. This allows easy support for different Scanners and even DB types. Currently RocketMap [MySQL] and the Monocle-Alternate [MySQL and PgSQL] fork are implemented. The DB Type can be set via in config.php. ["rocketmap", "monocle-alt-mysql" or "monocle-alt-pgsql"].

Run CreateStatsRocketMap.sql or CreateStatsMonocle.sql for counts to work.

Requires PR 27 Moncole-Alternate Recommended Settings for Moncole-Alternate:

KEEP_GYM_HISTORY = True
CLEANUP_SIGHTINGS_OLDER_THAN_X_HR = 168.0 (or higher | min: 24.0)
CLEANUP_FORT_SIGHTINGS_OLDER_THAN_X_HR = -1.0 (or 168.0 or higher)
CLEANUP_GYM_DEFENDERS_OLDER_THAN_X_HR = -1.0 (or 168.0 or higher)
RAIDERS_PER_GYM = 0.1 (target update interval of ~60s)

ToDo

Types of changes

javisabalete commented 6 years ago

Tested with RocketMap and works as expected.

Requested small changes

123FLO321 commented 6 years ago

fixed @michikrug

Obihoernchen commented 5 years ago

Now in #371