You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
406 B
Python

import json
title = input('Title: ')
description = input('Description: ')
tags = input('Tags: ')
gradient = input('Gradient: ')
with open('entries.json', 'r') as f:
data = json.load(f)
data["entries"].append({
"title": title,
"description": description,
"tags": tags,
"gradient": gradient
})
with open('entries.json', 'w') as f:
json.dump(data, f, ensure_ascii=False, indent=4)