فهرست منبع

Fix sort/order parameters in query

Santiago Pastorino 4 سال پیش
والد
کامیت
c1bc65d1fb
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      src/github.rs

+ 5 - 3
src/github.rs

@@ -706,11 +706,13 @@ impl Repository {
                     .map(|label| format!("-label:{}", label)),
                     .map(|label| format!("-label:{}", label)),
             )
             )
             .chain(std::iter::once(format!("repo:{}", self.full_name)))
             .chain(std::iter::once(format!("repo:{}", self.full_name)))
-            .chain(std::iter::once(format!("sort:created")))
-            .chain(std::iter::once(format!("order:asc")))
             .collect::<Vec<_>>()
             .collect::<Vec<_>>()
             .join("+");
             .join("+");
-        format!("{}/search/issues?q={}", self.base_url(), filters)
+        format!(
+            "{}/search/issues?q={}&sort=created&order=asc",
+            self.base_url(),
+            filters
+        )
     }
     }
 }
 }