FAForever / faf-python-api

Deprecated python api - please go to faf-java-api for the current api!
https://github.com/FAForever/faf-java-api
GNU General Public License v3.0
3 stars 10 forks source link

Wrong map statistics #85

Open micheljung opened 8 years ago

micheljung commented 8 years ago

Watch the "times played" and "downloads"

mysql> select * from table_map_features where map_id = 6261;
+--------+--------+----------------------------------+-----------+--------------+-----------+
| map_id | rating | voters                           | downloads | times_played | num_draws |
+--------+--------+----------------------------------+-----------+--------------+-----------+
|   6261 |      5 | YToxOntpOjEzMzYzNjtzOjE6IjUiO30= |         2 |            0 |         0 |
+--------+--------+----------------------------------+-----------+--------------+-----------+
1 row in set (0.01 sec)                                                

But:

"data": [
    {
      "attributes": {
        "author": "Blodir", 
        "battle_type": "FFA", 
        "create_time": "2016-08-08T23:39:01+00:00", 
        "description": "Dusty Mounds made by Blodir on twitch stream www.twitch.tv/blodir", 
        "display_name": "Dusty Mounds", 
        "download_url": "http://content.faforever.com/faf/vault/maps/dusty_mounds.v0004.zip", 
        "downloads": 149, 
        "height": 512, 
        "id": "4381", 
        "map_type": "skirmish", 
        "max_players": 6, 
        "num_draws": 0, 
        "rating": 2.2, 
        "technical_name": "dusty_mounds.v0004", 
        "thumbnail_url_large": "http://content.faforever.com/faf/vault/map_previews/large/dusty_mounds.v0004.png", 
        "thumbnail_url_small": "http://content.faforever.com/faf/vault/map_previews/small/dusty_mounds.v0004.png", 
        "times_played": 54, 
        "version": "4", 
        "width": 512
      }, 
      "id": "4381", 
      "type": "map"
    }, 
micheljung commented 8 years ago

Wait.. what.. this example is confusing (map IDs don't match). I have to check again