+
Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

feat: date released column #271

Merged
merged 5 commits into from
Oct 20, 2020
Merged

feat: date released column #271

merged 5 commits into from
Oct 20, 2020

Conversation

casperstorm
Copy link
Member

@casperstorm casperstorm commented Oct 19, 2020

Resolves #210

Proposed Changes

  • This PR will add a date released column in both My Addons and Catalog.

Checklist

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users

@casperstorm casperstorm marked this pull request as draft October 19, 2020 21:17
@@ -258,9 +258,12 @@ impl Addon {
let version = package.version.clone();
let download_url = package.url.clone();

let date_time = NaiveDateTime::parse_from_str(&package.lastupdate, "%Y-%m-%d")
let date_time = NaiveDateTime::parse_from_str(&package.lastupdate, "%Y-%m-%d %H:%M:%S")
.map_or(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to use Result::map_or_else here to avoid parsing a second time if it succeeds the first time. My understanding is this will parse twice every time, even if the first is successful.

@casperstorm casperstorm marked this pull request as ready for review October 20, 2020 16:34
@casperstorm casperstorm merged commit 6079abd into development Oct 20, 2020
@casperstorm casperstorm deleted the feat/date-modified branch October 20, 2020 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载