ed-api-client 0.1.6__tar.gz → 0.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/PKG-INFO +1 -1
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/workspaces.py +6 -6
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/pyproject.toml +1 -1
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/README.md +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/__init__.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/assignments.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/canvas.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/challenges.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/client.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/quizzes.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/slides.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/threads.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/users.py +0 -0
- {ed_api_client-0.1.6 → ed_api_client-0.1.7}/ed_api_client/websockets.py +0 -0
|
@@ -16,19 +16,19 @@ class Selections(List[str]):
|
|
|
16
16
|
|
|
17
17
|
stripped_s = s.strip()
|
|
18
18
|
|
|
19
|
-
if self.
|
|
19
|
+
if self.contains(stripped_s):
|
|
20
20
|
return
|
|
21
21
|
|
|
22
22
|
for candidate in list(self):
|
|
23
23
|
if candidate in stripped_s:
|
|
24
24
|
self.remove(candidate)
|
|
25
25
|
|
|
26
|
-
self.
|
|
26
|
+
self.append(stripped_s)
|
|
27
27
|
|
|
28
28
|
def contains(self, s: str) -> bool:
|
|
29
29
|
stripped_s = s.strip()
|
|
30
|
-
for candidate in self
|
|
31
|
-
if stripped_s in candidate :
|
|
30
|
+
for candidate in self:
|
|
31
|
+
if stripped_s in candidate or stripped_s == candidate:
|
|
32
32
|
return True
|
|
33
33
|
|
|
34
34
|
return False
|
|
@@ -449,7 +449,7 @@ class FileSummary(File):
|
|
|
449
449
|
typing_time: datetime.timedelta = datetime.timedelta(0)
|
|
450
450
|
prev_typing_time: datetime.datetime = None
|
|
451
451
|
|
|
452
|
-
selections: Selections = field(default_factory=
|
|
452
|
+
selections: Selections = field(default_factory=Selections)
|
|
453
453
|
external_pastes: List[str] = field(default_factory=list)
|
|
454
454
|
|
|
455
455
|
pasted_proportion: float = 0
|
|
@@ -715,7 +715,7 @@ class WorkspaceSummary:
|
|
|
715
715
|
selected_content.add(sel_text.strip())
|
|
716
716
|
sel_file = file_summaries.get(sel_file_id)
|
|
717
717
|
if sel_file is not None:
|
|
718
|
-
sel_file.selections.
|
|
718
|
+
sel_file.selections.add(sel_text.strip())
|
|
719
719
|
if '\n' in sel_text:
|
|
720
720
|
sel_file.multiline_selection_count += 1
|
|
721
721
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|