Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -213,7 +213,15 @@ def make_files(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t_
|
|
| 213 |
with open("back_gab.html", "w") as f:
|
| 214 |
f.write(app)
|
| 215 |
files.append("back_gab.html")
|
| 216 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
|
| 218 |
if t_name == None or t_name =="":
|
| 219 |
t_name = t_iframe.split("www.", 1)[1].replace(".","_").replace("/", "-")
|
|
|
|
| 213 |
with open("back_gab.html", "w") as f:
|
| 214 |
f.write(app)
|
| 215 |
files.append("back_gab.html")
|
| 216 |
+
|
| 217 |
+
####### masto
|
| 218 |
+
with open("template/back.html", "r") as f:
|
| 219 |
+
app = f.read()
|
| 220 |
+
app = app.replace("$iframe", t_iframe)
|
| 221 |
+
app = app.replace("$pad", "56%")
|
| 222 |
+
with open("back_masto.html", "w") as f:
|
| 223 |
+
f.write(app)
|
| 224 |
+
files.append("back_gab.html")
|
| 225 |
|
| 226 |
if t_name == None or t_name =="":
|
| 227 |
t_name = t_iframe.split("www.", 1)[1].replace(".","_").replace("/", "-")
|