Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.
This repository was archived by the owner on Jun 29, 2019. It is now read-only.

Wrong map statistics #85

@micheljung

Description

@micheljung

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"
    }, 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions