@@ -157,10 +157,10 @@ public function getOrCreateSubmission($producerDao, $uuid)
157157 * Get the single latest submission associated with a given producer.
158158 *
159159 * @param Tracker_ProducerDao $producerDao producer DAO
160- * @param false | string $date the latest time end the 24-hour interval or false to use the current day.
160+ * @param false | string $date the end of the interval or false to use 23:59:59 of the current day
161161 * @param string $branch the branch of the submission for which to search
162- * @param bool $onlyOneDay true to return submissions 24 hours back from $date, false otherwise. In the case of the
163- * of $date === false, $onlyOneDay will search only in the current day.
162+ * @param bool $onlyOneDay if true return submissions 24 hours back from $date, false otherwise. In the case of
163+ * $date === false, search only in the current day
164164 * @return false | Tracker_SubmissionDao submission
165165 */
166166 public function getLatestSubmissionByProducerDateAndBranch ($ producerDao , $ date = false , $ branch = 'master ' ,
@@ -178,7 +178,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
178178 'tracker_scalar ' ,
179179 'tracker_submission.submission_id = tracker_scalar.submission_id ' ,
180180 array ())
181- ->where ('tracker_submission.submit_time < ? ' , $ queryTime );
181+ ->where ('tracker_submission.submit_time <= ? ' , $ queryTime );
182182 if ($ onlyOneDay ) {
183183 $ sql = $ sql ->where ('tracker_submission.submit_time > ? ' , $ dayBeforeQueryTime );
184184 }
@@ -200,7 +200,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
200200 * Get trends associated with a submission.
201201 *
202202 * @param Tracker_SubmissionDao $submissionDao submission DAO
203- * @param bool $key true if only key trends should be returned, false otherwise.
203+ * @param bool $key true if only key trends should be returned, false otherwise
204204 * @return array Tracker_TrendDaos
205205 */
206206 public function getTrends ($ submissionDao , $ key = true )
0 commit comments