mirror of
https://github.com/mustbeperfect/definitive-opensource.git
synced 2026-04-20 15:55:44 +02:00
Changed "link" to "repu_url" and added "homepage_url"
This commit is contained in:
@@ -97,7 +97,7 @@ def generate_contents(platform="all"):
|
||||
for app in apps:
|
||||
name = app.get("name", "")
|
||||
description = app.get("description", "").replace("|", "-")
|
||||
link = app.get("link", "#")
|
||||
link = app.get("repo_url", "#")
|
||||
tags = ""
|
||||
"""
|
||||
if app.get("tags"):
|
||||
|
||||
@@ -15,7 +15,7 @@ headers = {
|
||||
|
||||
def update_application_data(app):
|
||||
|
||||
repo_name = app["link"].split("github.com/")[1]
|
||||
repo_name = app["repo_url"].split("github.com/")[1]
|
||||
|
||||
|
||||
repo_url = f'https://api.github.com/repos/{repo_name}'
|
||||
|
||||
@@ -6,9 +6,7 @@ with open("source/data/applications.json", "r", encoding="utf-8") as file:
|
||||
|
||||
# Add "flags" and "stars" properties to each application
|
||||
for app in data.get("applications", []):
|
||||
app["last_commit"] = ""
|
||||
app["language"] = ""
|
||||
app["license"] = ""
|
||||
app["homepage_url"] = ""
|
||||
|
||||
# Save the updated JSON back to the file
|
||||
with open("source/data/applications.json", "w", encoding="utf-8") as file:
|
||||
|
||||
@@ -25,7 +25,7 @@ def parse_readme(readme_path):
|
||||
applications.append({
|
||||
"name": name,
|
||||
"description": description,
|
||||
"link": link,
|
||||
"repo_url": link,
|
||||
"tags": [tag] if tag else [],
|
||||
"platforms": platforms.split(),
|
||||
"category": category
|
||||
|
||||
Reference in New Issue
Block a user