fedora-infra / mirrormanager2

Rewrite of the MirrorManager application in Flask and SQLAlchemy
https://mirrormanager.fedoraproject.org
GNU General Public License v2.0
63 stars 48 forks source link

Add order option to get_file_detail() #118

Closed adrianreber closed 8 years ago

adrianreber commented 8 years ago

Until now get_file_detail() was always used with all optional parameters specified and thus always the correct FileDetails were returned. If only the Directory.ID and the name of the file are specified this function returns the older entry (if multiple entries for the wanted file exist). This adds an option to reverse the order and so the newest entry about the given file should be returned.

pypingou commented 8 years ago

:+1: nice and clean