commit 805eb70d41ffa027f0d227dd634422300a063dd6
parent 5db61222809e6ba3ebffbd96b00734781a585beb
Author: rbckman <rob@tarina.org>
Date: Wed, 5 Aug 2026 18:16:51 +0300
some combine fixes
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/server.py b/server.py
@@ -899,10 +899,12 @@ def getcombines(postid):
l=len(os.listdir(basedir+'p/posts/'+postid+'/combos/'))
except:
l=0
+ print('fffffffffffffffffff'+str(l))
+ print(postid)
#m = db.query("SELECT * FROM likes WHERE bild='"+postid+"' AND user='"+user+"';")
#db.update('published', where='postid="'+postid+'"', combines=0)
- if l > 0:
- return "⚭ " + str(l)
+ if int(l) > 0:
+ return "⚭ " + str(l)
else:
return ''