Skip to content
TORNLIFE More

API - old attacks wrong 'ranked_war': 0

Started by bbeebs [2313341] on in Bugs & Issues.

3 replies · 85 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
4
Discussion span
→
People posting
4
Likes on archived posts
3
Posts by staff, officers and moderators
3
Authority score
58 / 100
Historical score
34 / 100
Story score
36 / 100
Engagement score
43 / 100

Most-liked replies

bbeebs [2313341]
I tried loading attacks from a past ranked war using /attacks?from=xxx API call. I noticed that the "ranked_war" flag is 0 for all hits for wars that happened more than a few months ago.

[image: i.imgur.com]
This is just one example - one of the war hits during a ranked war - showing "war" modifier 2, but "ranked_war" flag is 0. I believe this to be a bug, or is it expected?
Chedburn [1] Admin Developer
This 'ranked_wars_hits' table is frequently pruned, so it appears only the most recent 3 months are kept. This means the data is no longer available after 3 months to mark this as a ranked war hit.

Let's ask Roman or Sergey, perhaps the pruning duration can be extended to at least a year, or ideally three years. That should be fine, as there's only 1.8m rows currently.