Skip to content

Commit

Permalink
Revert #17
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Mar 16, 2018
1 parent cd9019f commit b6abd16
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class Settings:
"reference URL": "P854",
"official website": "P856",
"source code repository": "P1324",
"version type": "P548",
"title": "P1476",
}

Expand Down Expand Up @@ -397,7 +396,6 @@ def update_wikidata(properties):
# Add all stable releases
properties["stable_release"].sort(key=lambda x: LooseVersion(x["version"]))
properties["stable_release"].reverse()
stable = pywikibot.ItemPage(repo, "Q2804309")

if len(properties["stable_release"]) == 0:
return
Expand All @@ -416,7 +414,6 @@ def update_wikidata(properties):
claim = get_or_create_claim(repo, item, Settings.properties["software version"], release["version"])

get_or_create_qualifiers(repo, claim, Settings.properties["publication date"], release["date"])
get_or_create_qualifiers(repo, claim, Settings.properties["version type"], stable)
title = "Release %s" % release["version"]
get_or_create_sources(repo, claim, release["page"], properties["retrieved"], title, release["date"])

Expand Down

0 comments on commit b6abd16

Please sign in to comment.