heartranked

git clone https://git.tarina.org/heartranked
Log | Files | Refs

commit aa9acaab46a980360b53f50df913b54eb572b1c1
parent 805eb70d41ffa027f0d227dd634422300a063dd6
Author: rbckman <rob@tarina.org>
Date:   Wed,  5 Aug 2026 21:42:40 +0300

basics are working

Diffstat:
Mhtml/heartranked.html | 4++--
Mserver.py | 5++---
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/html/heartranked.html b/html/heartranked.html @@ -87,7 +87,7 @@ $else: <small>by $g['creator']</small> $:userimage(g['creator']) <br> - $ getcombines(g['postid']) + $getcombines(g['postid']) $if 'combine' in g: $if g['combine'] != '': $if postexist(g['combine']): @@ -137,7 +137,7 @@ $else: </div> <div class="postmenu"> <small>by $g['creator'] $g['timeadded']</small><br> - $ getcombines(g['postid']) + $getcombines(g['postid']) $if 'combine' in g: $if g['combine'] != '': $#combined = db.select('published', where="postid='"+g['combine']+"'")[0] diff --git a/server.py b/server.py @@ -1375,9 +1375,8 @@ class editor: thedict={'soundname':soundname} savejson('u/'+session.user+'/posts/'+session.postid+'/meta',thedict) #session.postid = hashlib.sha256(str(random.getrandbits(256)).encode('utf-8')).hexdigest()[9:36] - if os.path.exists(basedir+'p/posts/'+session.postid+'/meta') == False: - os.system('cp -r '+basedir+'u/'+session.user+'/posts/'+session.postid+' '+basedir+'p/posts/') - #also zippit here! + os.system('cp -r '+basedir+'u/'+session.user+'/posts/'+session.postid+' '+basedir+'p/posts/') + #also zippit here! raise web.seeother('/editor?public=yes') #db.insert('pawning', pawning=i.remix, name=session.user, timeadded=formattime(datetime.datetime.now())) return rendersplash.editor(storage, text, text2, markdown, safe_filename, session.postid, i.public, logged(), session.user, i.combine, i.remix)