Spaces:
Running
Running
Add metadata
Browse files- Dockerfile +1 -0
- metadata.json +56 -0
- server.py +7 -0
Dockerfile
CHANGED
@@ -28,5 +28,6 @@ COPY ./discord_bot.py /discordbot/discord_bot.py
|
|
28 |
COPY ./horde.py /discordbot/horde.py
|
29 |
COPY ./fishspeech.py /discordbot/fishspeech.py
|
30 |
COPY ./discord.json /discordbot/discord.json
|
|
|
31 |
|
32 |
CMD ["python", "/discordbot/server.py"]
|
|
|
28 |
COPY ./horde.py /discordbot/horde.py
|
29 |
COPY ./fishspeech.py /discordbot/fishspeech.py
|
30 |
COPY ./discord.json /discordbot/discord.json
|
31 |
+
COPY ./metadata.json /discordbot/metadata.json
|
32 |
|
33 |
CMD ["python", "/discordbot/server.py"]
|
metadata.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"draw_dream": {
|
3 |
+
"privacy_policy": {
|
4 |
+
"updated_datetime": 1729936289,
|
5 |
+
"effective_datetime": 1729936289,
|
6 |
+
"update_log": {
|
7 |
+
"default": "The first version publish successfully.",
|
8 |
+
"zh_cn": "第δΈηζ¬ζεεεΈγ"
|
9 |
+
},
|
10 |
+
"histories": [
|
11 |
+
{
|
12 |
+
"updated_datetime": 1729936289,
|
13 |
+
"effective_datetime": 1729936289,
|
14 |
+
"file_path": {
|
15 |
+
"default": "",
|
16 |
+
"zh_cn": ""
|
17 |
+
}
|
18 |
+
}
|
19 |
+
]
|
20 |
+
},
|
21 |
+
"end_user_license_agreement": {
|
22 |
+
"updated_datetime": 1729936289,
|
23 |
+
"effective_datetime": 1729936289,
|
24 |
+
"update_log": {
|
25 |
+
"default": "The first version publish successfully.",
|
26 |
+
"zh_cn": "第δΈηζ¬ζεεεΈγ"
|
27 |
+
},
|
28 |
+
"histories": [
|
29 |
+
{
|
30 |
+
"updated_datetime": 1729936289,
|
31 |
+
"effective_datetime": 1729936289,
|
32 |
+
"file_path": {
|
33 |
+
"default": "",
|
34 |
+
"zh_cn": ""
|
35 |
+
}
|
36 |
+
}
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"app": {
|
40 |
+
"version_name": "1.0",
|
41 |
+
"version_code": "1",
|
42 |
+
"publish_datetime": 1729936289,
|
43 |
+
"logs": [
|
44 |
+
{
|
45 |
+
"version_name": "1.0",
|
46 |
+
"version_code": "1",
|
47 |
+
"publish_datetime": 1729936289,
|
48 |
+
"content": {
|
49 |
+
"default": "The first version publish successfully.",
|
50 |
+
"zh_cn": "第δΈηζ¬ζεεεΈγ"
|
51 |
+
}
|
52 |
+
}
|
53 |
+
]
|
54 |
+
}
|
55 |
+
}
|
56 |
+
}
|
server.py
CHANGED
@@ -68,6 +68,13 @@ def privacyPolicy():
|
|
68 |
@application.route('/terms_of_service')
|
69 |
def termsOfService():
|
70 |
return render_template("terms_of_service.html")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
# listen for requests
|
73 |
def run():
|
|
|
68 |
@application.route('/terms_of_service')
|
69 |
def termsOfService():
|
70 |
return render_template("terms_of_service.html")
|
71 |
+
|
72 |
+
with open("metadata.json", "r") as f:
|
73 |
+
json_data = json.load(f)
|
74 |
+
@appliation.route('/metadata')
|
75 |
+
def metadata():
|
76 |
+
return jsonify(json_data)
|
77 |
+
|
78 |
|
79 |
# listen for requests
|
80 |
def run():
|