#2766 api getLastHostUpdate returns timestamp
Merged by tkopecek. Opened by jcupova.
jcupova/koji issue2497  into  master

Download 2766.patch

fixes: https://pagure.io/koji/issue/2497

rebased onto bc7d358189b91541afe30c845b3b768e2e6bbaea

rebased onto f8a858bfce368e9771ba621ba6bbfe86881529af

rebased onto 076564819823b6ec8cbd828b55b1bdd187b6f2f2

rebased onto dded273a7d09395b25243733d0c3ba4b676a05e9

:thumbsup:

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

rebased onto 1208140a876fa1cd3122a2668dd06dccaac033d0

@tkopecek can you review it again? I pushed check when hostID is not existing. There were a problem when ts=True.

I would simplify it a bit (just check that it is working correctly for invalid host):

date = return _singleValue(query, locals(), strict=False)
if ts and date is not None:
    return date.timestamp()
else:
    return date

rebased onto 74a34fad17a10264cd4786ecc2569e0d5811f739

rebased onto 421555cd41fea6733ee0125e5e5268b3efc086a5

@tkopecek fixed

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-done

Commit f7a63384 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata