File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ class Contact(SQLModel, table=True):
155
155
"""An entry in the address book."""
156
156
157
157
id : Optional [int ] = Field (default = None , primary_key = True )
158
- first_name : str
159
- last_name : str
158
+ first_name : Optional [ str ]
159
+ last_name : Optional [ str ]
160
160
company : Optional [str ]
161
161
email : Optional [str ]
162
162
address_id : Optional [int ] = Field (default = None , foreign_key = "address.id" )
Original file line number Diff line number Diff line change @@ -119,8 +119,9 @@ def import_from_calendar(cal: Calendar) -> DataFrame:
119
119
if issubclass (type (cal ), ICloudCalendar ):
120
120
timetracking_data = cal .to_data ()
121
121
return timetracking_data
122
- elif issubclass (cal , FileCalendar ):
123
- raise NotImplementedError ()
122
+ elif issubclass (type (cal ), FileCalendar ):
123
+ timetracking_data = cal .to_data ()
124
+ return timetracking_data
124
125
else :
125
126
raise NotImplementedError ()
126
127
You can’t perform that action at this time.
0 commit comments