diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-09-23 13:48:42 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-09-23 14:05:41 +0200 |
commit | 04a0fd47482f513c24645eb3f8b88b07303f9ec4 (patch) | |
tree | cfcad495eda2228cd4b4058c5e82d852ffe603cd /web/lib/aurjson.class.php | |
parent | 675b7e3d02033c469df7720105b9b8bef9aedb1d (diff) | |
download | aurweb-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>
Diffstat (limited to 'web/lib/aurjson.class.php')
-rw-r--r-- | web/lib/aurjson.class.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index b596359..b4648c9 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' ); |