summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-09-23 13:48:42 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-09-23 14:05:41 +0200
commit04a0fd47482f513c24645eb3f8b88b07303f9ec4 (patch)
treecfcad495eda2228cd4b4058c5e82d852ffe603cd
parent675b7e3d02033c469df7720105b9b8bef9aedb1d (diff)
downloadaur-04a0fd47482f513c24645eb3f8b88b07303f9ec4.tar.gz
aur-04a0fd47482f513c24645eb3f8b88b07303f9ec4.tar.xz
RPC: Provide out-of-date timestamp
Convert the "OutOfDate" field to provide a timestamp instead of a boolean flag in JSON results. We don't really care about backward compatibility here, as most AUR helpers would break anyway when trying to parse RPC responses after the data type overhaul that should come with one of the following patches. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/lib/aurjson.class.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index b5963595..b4648c95 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -18,9 +18,8 @@ class AurJSON {
'search', 'info', 'multiinfo', 'msearch'
);
private static $fields = array(
- 'Packages.ID', 'Name', 'Version', 'CategoryID',
- 'Description', 'URL', 'License',
- 'NumVotes', '(OutOfDateTS IS NOT NULL) AS OutOfDate',
+ 'Packages.ID', 'Name', 'Version', 'CategoryID', 'Description', 'URL',
+ 'License', 'NumVotes', 'OutOfDateTS AS OutOfDate',
'SubmittedTS AS FirstSubmitted', 'ModifiedTS AS LastModified'
);