Skip to content
TORNLIFE More

Attacks API bug

Started by epicaricacy [2040809] on in Bugs & Issues.

5 replies · 78 views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 6 / 6 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
6
Discussion span
→
People posting
3
Likes on archived posts
1
Posts by staff, officers and moderators
2
Authority score
58 / 100
Historical score
33 / 100
Story score
35 / 100
Engagement score
44 / 100

Most-liked replies

epicaricacy [2040809]

Backwards incompatible changes, it seems.

https://api.torn.com/faction/8819?selections=attacks (and attacksfull) now seem to return the oldest 100/1k results by default. Previous behaviour returned the most recent 1k/10k which seems to make more sense as a default.

Can we please retain the previous ordering when the from/to params aren't specified?

Or is there some param I can specify to provide sorting instructions?
Chedburn [1] Admin Developer

If you include timestamps, the maximum possible results is 1,000. Without timestamps it's 100. Producing 10,000 rows was causing slow queries so it's been adjusted to something a little more sensible (1000).

What is the issue exactly?
epicaricacy [2040809]

Page size is fine. 

The issue is page contains oldest attacks (from 2015 for this faction) rather than the most recent attacks which was the previous behaviour.