heartranked

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

commit 8e159afb785a4786c32ef8ceaadf803d9d932df8
parent 39fbb6274ea439e8d6a003f244568501270465ef
Author: rbckman <rob@tarina.org>
Date:   Sat, 22 Aug 2026 08:09:12 +0300

any sec now

Diffstat:
Mserver.py | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/server.py b/server.py @@ -1882,9 +1882,11 @@ class pull: print(i.name) print(i.postid) posts = get_dirs_by_time('p/posts/', reverse=True) - posts = posts[:posts.index(i.postid)] #MUST GET POST LIST FROM SERVER API INSTEAD DUDE + try: + posts = posts[:posts.index(i.postid)] #MUST GET POST LIST FROM SERVER API INSTEAD DUDE + except: + pass postdict={} - print('sdasddffffffffffffff') print(posts) for p in posts: postdict.update({i.postid:{'postid': i.postid, 'name': i.name}}) @@ -1898,7 +1900,9 @@ class pull: print('pulling from '+t['servername']) #posts = getpostsfromse}erver( postid = get_dirs_by_time('p/posts/', reverse=True)[0] - pullposts = requests.get('https://'+t['servername']+'/pull?name='+t['user']+'&postid='+postid).json() + pullposts = requests.get('https://'+t['servername']+'/pull?name='+t['user']+'&postid='+postid) + print(pullposts) + print('sdasddffffffffffffff') #zippandshipp=[] #if t['user']!=None: # users = os.listdir(basedir+'r/users/') @@ -1907,7 +1911,6 @@ class pull: # for p in posts: # if p['creator']==r['name']: # pullnunzip.append(p) - print(pullnunzip) for p in pullposts: print('hold on pulling new posts') os.system('wget -o '+basedir+'p/zipped/ https://'+t['servername']+'/static/users/'+p['name']+'/zipped/'+p['postid']+'.zip')