Replace sidebar with compact header and shared friend dashboards
This commit is contained in:
+3
-1
@@ -97,7 +97,8 @@ def latest_mapped_run(filters):
|
||||
)
|
||||
|
||||
|
||||
def records_for(owner_id, run_ids):
|
||||
def records_for(owner_id, run_ids, shared_only=False):
|
||||
visibility_filters = [Activity.visibility == "friends"] if shared_only else []
|
||||
history = db.session.execute(
|
||||
db.select(
|
||||
Activity.id,
|
||||
@@ -108,6 +109,7 @@ def records_for(owner_id, run_ids):
|
||||
Activity.best_efforts,
|
||||
)
|
||||
.where(
|
||||
*visibility_filters,
|
||||
Activity.owner_id == owner_id,
|
||||
Activity.sport == "running",
|
||||
Activity.efforts_version == EFFORTS_VERSION,
|
||||
|
||||
Reference in New Issue
Block a user