Skip to content

Commit 1371275

Browse files
committed
Added embed url property to Project class
1 parent 8b25914 commit 1371275

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scratchattach/site/project.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@ def _assert_permission(self):
228228
raise exceptions.Unauthorized(
229229
"You need to be authenticated as the profile owner to do this.")
230230

231+
@property
232+
def embed_url(self):
233+
"""
234+
Returns:
235+
the url of the embed of the project
236+
"""
237+
return f"{self.url}/embed"
238+
231239
def load_description(self):
232240
# Overrides the load_description method that exists for unshared projects
233241
self.update()

0 commit comments

Comments
 (0)