Compare commits
13 Commits
3de87809bb
...
187a7cd02f
Author | SHA1 | Date | |
---|---|---|---|
187a7cd02f | |||
8414843bbf | |||
474c387786 | |||
12407d797d | |||
64d7433a56 | |||
58b7204fbf | |||
36a2779381 | |||
44bb501d13 | |||
9010123d18 | |||
e3b67c4022 | |||
2bcdc5fe6e | |||
edfad992cc | |||
357d95f6ff |
@ -606,12 +606,14 @@ class Asset
|
||||
FROM assets_tags AS t
|
||||
INNER JOIN assets AS a ON a.id_asset = t.id_asset
|
||||
WHERE t.id_tag = {int:id_tag} AND
|
||||
(a.date_captured, a.id_asset) < ({datetime:date_captured}, {int:id_asset})
|
||||
ORDER BY a.date_captured DESC, a.id_asset DESC'
|
||||
a.date_captured <= {datetime:date_captured} AND
|
||||
a.id_asset != {int:id_asset}
|
||||
ORDER BY a.date_captured DESC'
|
||||
: '
|
||||
FROM assets AS a
|
||||
WHERE (a.date_captured, a.id_asset) > ({datetime:date_captured}, {int:id_asset})
|
||||
ORDER BY date_captured ASC, a.id_asset ASC')
|
||||
WHERE date_captured >= {datetime:date_captured} AND
|
||||
a.id_asset != {int:id_asset}
|
||||
ORDER BY date_captured ASC')
|
||||
. '
|
||||
LIMIT 1',
|
||||
[
|
||||
@ -637,12 +639,14 @@ class Asset
|
||||
FROM assets_tags AS t
|
||||
INNER JOIN assets AS a ON a.id_asset = t.id_asset
|
||||
WHERE t.id_tag = {int:id_tag} AND
|
||||
(a.date_captured, a.id_asset) > ({datetime:date_captured}, {int:id_asset})
|
||||
ORDER BY a.date_captured ASC, a.id_asset ASC'
|
||||
a.date_captured >= {datetime:date_captured} AND
|
||||
a.id_asset != {int:id_asset}
|
||||
ORDER BY a.date_captured ASC'
|
||||
: '
|
||||
FROM assets AS a
|
||||
WHERE (a.date_captured, a.id_asset) < ({datetime:date_captured}, {int:id_asset})
|
||||
ORDER BY date_captured DESC, a.id_asset DESC')
|
||||
WHERE date_captured <= {datetime:date_captured} AND
|
||||
a.id_asset != {int:id_asset}
|
||||
ORDER BY date_captured DESC')
|
||||
. '
|
||||
LIMIT 1',
|
||||
[
|
||||
|
Loading…
x
Reference in New Issue
Block a user