Explorar o código

Public Bookmarks now show all public bookmarks, bug fixed

control %!s(int64=3) %!d(string=hai) anos
pai
achega
413d49fbb4
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. BIN=BIN
      app/database.db
  2. 2 2
      app/logic.py

BIN=BIN
app/database.db


+ 2 - 2
app/logic.py

@@ -108,9 +108,9 @@ def home():
 def shared():
 
     # owned groups
-    bgroups = Groups.query.filter_by(owner=current_user.id).all()
+    bgroups = Groups.query.all()
     # owned bookmarks
-    bmarks = Bookmark.query.filter_by(owner=current_user.id).all()
+    bmarks = Bookmark.query.all()
 
     bb_dic = dict() # dict of lists
     for bg in bgroups: