diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-08-01 18:13:53 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-08-01 18:13:53 -0500 |
| commit | 441b3085fab7f0c83e8eb2df388661d6e18c0120 (patch) | |
| tree | 2359c78a50cd714aaf308c5764460cead7d551b9 /src/models | |
| parent | f05396f0e86f68ee45e8c25d79401b6f54979dba (diff) | |
WiP parsing of office hours
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/PeerTeacher.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/PeerTeacher.ts b/src/models/PeerTeacher.ts index 9069069..7fee179 100644 --- a/src/models/PeerTeacher.ts +++ b/src/models/PeerTeacher.ts @@ -101,6 +101,8 @@ export default class PeerTeacher { return total_hours; } + // The public URL for displaying an an image on Google Drive has to be in this format + // This function simply replaces everthing before '=' with '' get drive_pic(): string { if (this.prof_pic_url == null || this.prof_pic_url == undefined) return "" return `https://drive.google.com/uc?export=view&id=${this.prof_pic_url.replace(/^[^=]*=/, '')}`; |
