Skip to content

Commit

Permalink
give default value of duration due to ui file loss
Browse files Browse the repository at this point in the history
  • Loading branch information
weearc committed Feb 9, 2022
1 parent 1ff45a8 commit 5e394f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cqu_timetable_new/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def add_datetime(component, name, time):
component.add(name, vdatetime)


def mkevent(data, cal, dt, duration, alarm=False, isDebug=False):
def mkevent(data, cal, dt, duration=15, alarm=False, isDebug=False):
if not data[0]:
assert not (data[1] or data[2] or data[3] or data[4])
return
Expand Down Expand Up @@ -218,7 +218,7 @@ def mkevent(data, cal, dt, duration, alarm=False, isDebug=False):
cal.add_component(event)


def mkical(data, start_date, duration, alarm=False, isDebug=False):
def mkical(data, start_date, duration=15, alarm=False, isDebug=False):
"""生成日历
Args:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cqu_timetable_new"
version = "0.3.2.143"
version = "0.3.2.144"
description = "Generate CQU timetable iCalendar (ics) file"
authors = ["weearc <[email protected]>"]
license = "AGPL-3.0-only"
Expand Down

0 comments on commit 5e394f6

Please sign in to comment.