pyvikunja 0.13__py3-none-any.whl → 0.14__py3-none-any.whl
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.
- pyvikunja/models/task.py +2 -2
- {pyvikunja-0.13.dist-info → pyvikunja-0.14.dist-info}/METADATA +1 -1
- {pyvikunja-0.13.dist-info → pyvikunja-0.14.dist-info}/RECORD +6 -6
- {pyvikunja-0.13.dist-info → pyvikunja-0.14.dist-info}/LICENSE +0 -0
- {pyvikunja-0.13.dist-info → pyvikunja-0.14.dist-info}/WHEEL +0 -0
- {pyvikunja-0.13.dist-info → pyvikunja-0.14.dist-info}/top_level.txt +0 -0
pyvikunja/models/task.py
CHANGED
@@ -172,10 +172,10 @@ class Task(BaseModel):
|
|
172
172
|
|
173
173
|
async def set_repeating_interval(self, interval: Optional[timedelta] = None,
|
174
174
|
mode: Optional[RepeatMode] = None) -> 'Task':
|
175
|
-
new_interval = interval if interval else self.repeat_after
|
175
|
+
new_interval = interval if interval is not None else self.repeat_after
|
176
176
|
total_seconds = int(new_interval.total_seconds())
|
177
177
|
|
178
|
-
new_mode = mode if mode else self.repeat_mode
|
178
|
+
new_mode = mode if mode is not None else self.repeat_mode
|
179
179
|
|
180
180
|
return await self.update({'repeat_after': total_seconds,
|
181
181
|
'repeat_mode': new_mode.value})
|
@@ -3,13 +3,13 @@ pyvikunja/api.py,sha256=mHPn0XPFrYNCG3ChIUnluAOP08z3YyUL_3nors9RuYU,6920
|
|
3
3
|
pyvikunja/models/label.py,sha256=cOOuVYDVDMmK96Ev22EDgWwXljkAonQNL4XsTMay4K4,467
|
4
4
|
pyvikunja/models/models.py,sha256=RCPsYQtcgE-W5ZmhwGDejAI76nHZ9-1X-x5GeTG4RnI,637
|
5
5
|
pyvikunja/models/project.py,sha256=viVIe3lVgbh7k05ADDds1cwzvC1vf4tT2vSNjbB7KMk,1179
|
6
|
-
pyvikunja/models/task.py,sha256=
|
6
|
+
pyvikunja/models/task.py,sha256=8KUoN0SuTRkJq_cHdsuIeQHUiNgOiWCLcWFVN9NJH5c,7806
|
7
7
|
pyvikunja/models/team.py,sha256=0Z3828Cm3nNuNr1z2on63fLYAVW325_SQKi5RmqXf-I,559
|
8
8
|
pyvikunja/models/user.py,sha256=36duFNyGXKzlwqO0d6FA-C1KTCci2sIMU1IBIF-N_LM,310
|
9
9
|
pyvikunja/models/enum/repeat_mode.py,sha256=xkDPfYeRz342ovqro1UVBAoegpPgpZQYTnyo2sf6R7I,112
|
10
10
|
pyvikunja/models/enum/task_priority.py,sha256=aVz1HEofIqwUkXG0vYm58n_vLNbgqtbvHuQ5K-YQqA0,119
|
11
|
-
pyvikunja-0.
|
12
|
-
pyvikunja-0.
|
13
|
-
pyvikunja-0.
|
14
|
-
pyvikunja-0.
|
15
|
-
pyvikunja-0.
|
11
|
+
pyvikunja-0.14.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
12
|
+
pyvikunja-0.14.dist-info/METADATA,sha256=AZg0N7kHaa4qrcISVA7hq6Bm2y2p7VwIfhfgFHZi8oM,188
|
13
|
+
pyvikunja-0.14.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
14
|
+
pyvikunja-0.14.dist-info/top_level.txt,sha256=WVV9zgxUBuWOkUY1t_U7zI0paWWTVelKYB4vjsiKsks,10
|
15
|
+
pyvikunja-0.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|